try flex-basis for resizing

This commit is contained in:
Bruno Windels 2019-01-10 14:03:17 +01:00
parent 51376c5c07
commit 68afadd83b

View file

@ -18,7 +18,7 @@ import {Sizer} from "./sizer";
class RoomSizer extends Sizer { class RoomSizer extends Sizer {
setItemSize(item, size) { setItemSize(item, size) {
item.style.maxHeight = `${Math.round(size)}px`; item.style.flexBasis = `${Math.round(size)}px`;
item.classList.add("resized-sized"); item.classList.add("resized-sized");
} }
} }