From 87720bac2e1d8032f75839fcd8e1cdd9443382da Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 28 Jan 2019 16:03:08 +0100 Subject: [PATCH] add comments to fields --- src/resizer/distributors/roomsublist2.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/resizer/distributors/roomsublist2.js b/src/resizer/distributors/roomsublist2.js index 96ce96d4ff..87e2473078 100644 --- a/src/resizer/distributors/roomsublist2.js +++ b/src/resizer/distributors/roomsublist2.js @@ -31,9 +31,15 @@ function clamp(height, min, max) { export class Layout { constructor(applyHeight, initialSizes, collapsedState) { + // callback to set height of section this._applyHeight = applyHeight; + // list of {id, count} objects, + // determines sections and order of them this._sections = []; + // stores collapsed by id this._collapsedState = Object.assign({}, collapsedState); + // total available height to the layout + // (including resize handles, ...) this._availableHeight = 0; // heights stored by section section id this._sectionHeights = Object.assign({}, initialSizes);