mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 18:25:49 +03:00
add comments to fields
This commit is contained in:
parent
d56f77debe
commit
87720bac2e
1 changed files with 6 additions and 0 deletions
|
@ -31,9 +31,15 @@ function clamp(height, min, max) {
|
||||||
|
|
||||||
export class Layout {
|
export class Layout {
|
||||||
constructor(applyHeight, initialSizes, collapsedState) {
|
constructor(applyHeight, initialSizes, collapsedState) {
|
||||||
|
// callback to set height of section
|
||||||
this._applyHeight = applyHeight;
|
this._applyHeight = applyHeight;
|
||||||
|
// list of {id, count} objects,
|
||||||
|
// determines sections and order of them
|
||||||
this._sections = [];
|
this._sections = [];
|
||||||
|
// stores collapsed by id
|
||||||
this._collapsedState = Object.assign({}, collapsedState);
|
this._collapsedState = Object.assign({}, collapsedState);
|
||||||
|
// total available height to the layout
|
||||||
|
// (including resize handles, ...)
|
||||||
this._availableHeight = 0;
|
this._availableHeight = 0;
|
||||||
// heights stored by section section id
|
// heights stored by section section id
|
||||||
this._sectionHeights = Object.assign({}, initialSizes);
|
this._sectionHeights = Object.assign({}, initialSizes);
|
||||||
|
|
Loading…
Reference in a new issue