MCPcopy Create free account
hub / github.com/material-shell/material-shell / push

Method push

src/layout/msWorkspace/portion.ts:125–137  ·  view source on GitHub ↗
(basis = 100, vertical?: boolean)

Source from the content-addressed store, hash-verified

123 }
124
125 push(basis = 100, vertical?: boolean) {
126 if (vertical === undefined) {
127 vertical = !this.vertical;
128 }
129
130 if (this.children.length === 0) {
131 this.children.push(new Portion(basis, vertical));
132 }
133
134 this.children.push(new Portion(basis, vertical));
135
136 this.updateBorders();
137 }
138
139 pushVertical(basis = 100) {
140 this.push(basis, true);

Callers 2

pushVerticalMethod · 0.95
pushHorizontalMethod · 0.95

Calls 2

updateBordersMethod · 0.95
pushMethod · 0.65

Tested by

no test coverage detected