mirror of https://github.com/vector-im/riot-web
make manual resizing follow cursor more accurately
by clearing flex-grow that was set based on the list size, you don't want it to grow anymore but be exactly the size you are giving it.pull/21833/head
parent
15059fe005
commit
4d53e13a28
|
@ -99,6 +99,7 @@ class Sizer {
|
||||||
|
|
||||||
class FlexSizer extends Sizer {
|
class FlexSizer extends Sizer {
|
||||||
setItemSize(item, size) {
|
setItemSize(item, size) {
|
||||||
|
item.style.flexGrow = `0`;
|
||||||
item.style.flexBasis = `${Math.round(size)}px`;
|
item.style.flexBasis = `${Math.round(size)}px`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue