mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
floor default section height
This commit is contained in:
parent
6e55ebdab7
commit
d833174d68
@ -81,10 +81,11 @@ export class Layout {
|
||||
|
||||
this._sections = sections;
|
||||
const totalHeight = this._getAvailableHeight();
|
||||
const defaultHeight = Math.floor(totalHeight / this._sections.length);
|
||||
this._sections.forEach((section, i) => {
|
||||
if (!this._sectionHeights[section.id]) {
|
||||
this._sectionHeights[section.id] = clamp(
|
||||
totalHeight / this._sections.length,
|
||||
defaultHeight,
|
||||
this._getMinHeight(i),
|
||||
this._getMaxHeight(i),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user