diff --git a/src/resizer/distributors/roomsublist2.js b/src/resizer/distributors/roomsublist2.js index 5d291e1516f..8e9112ebb32 100644 --- a/src/resizer/distributors/roomsublist2.js +++ b/src/resizer/distributors/roomsublist2.js @@ -63,9 +63,10 @@ export class Layout { if (Number.isFinite(availableHeight)) { this._availableHeight = availableHeight; } + this._sections = sections; const totalHeight = this._getAvailableHeight(); this._sections.forEach((section, i) => { - if (!this._sectionHeights.hasOwnProperty(section.id)) { + if (!this._sectionHeights[section.id]) { this._sectionHeights[section.id] = clamp( totalHeight / this._sections.length, this._getMinHeight(i), @@ -73,7 +74,6 @@ export class Layout { ); } }); - this._sections = sections; this._applyNewSize(); }