mirror of https://github.com/vector-im/riot-web
support collapsed items
parent
8352d8c6bd
commit
0803ea9158
|
@ -81,7 +81,10 @@ class RoomDistributor {
|
||||||
// this would happen if the cursor goes beyond the min-height
|
// this would happen if the cursor goes beyond the min-height
|
||||||
while (item) {
|
while (item) {
|
||||||
// TODO: collapsed
|
// TODO: collapsed
|
||||||
if (size <= MIN_SIZE) {
|
if (this._isCollapsed(item)) {
|
||||||
|
item = item.previous();
|
||||||
|
}
|
||||||
|
else if (size <= MIN_SIZE) {
|
||||||
item.setSize(MIN_SIZE);
|
item.setSize(MIN_SIZE);
|
||||||
const remainder = MIN_SIZE - size;
|
const remainder = MIN_SIZE - size;
|
||||||
item = item.previous();
|
item = item.previous();
|
||||||
|
|
Loading…
Reference in New Issue