support collapsed items

pull/21833/head
Bruno Windels 2019-01-08 18:17:34 +01:00
parent 8352d8c6bd
commit 0803ea9158
1 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,10 @@ class RoomDistributor {
// this would happen if the cursor goes beyond the min-height
while (item) {
// TODO: collapsed
if (size <= MIN_SIZE) {
if (this._isCollapsed(item)) {
item = item.previous();
}
else if (size <= MIN_SIZE) {
item.setSize(MIN_SIZE);
const remainder = MIN_SIZE - size;
item = item.previous();