pull/21833/head
Bruno Windels 2019-01-28 14:56:14 +01:00
parent bfb1031a6b
commit d08216e857
1 changed files with 6 additions and 2 deletions

View File

@ -72,7 +72,7 @@ export class Layout {
this._getMinHeight(i), this._getMinHeight(i),
this._getMaxHeight(i), this._getMaxHeight(i),
); );
}; }
}); });
this._sections = sections; this._sections = sections;
this._applyNewSize(); this._applyNewSize();
@ -143,7 +143,11 @@ export class Layout {
let overflowPerSection = blend ? (overflow / sections.length) : overflow; let overflowPerSection = blend ? (overflow / sections.length) : overflow;
for (const i of sections) { for (const i of sections) {
const newHeight = clamp(this._heights[i] - overflowPerSection, this._getMinHeight(i), this._getMaxHeight(i)); const newHeight = clamp(
this._heights[i] - overflowPerSection,
this._getMinHeight(i),
this._getMaxHeight(i),
);
if (newHeight == this._heights[i] - overflowPerSection) { if (newHeight == this._heights[i] - overflowPerSection) {
unclampedSections.push(i); unclampedSections.push(i);
} }