mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-26 00:42:08 +02:00
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.
This commit is contained in:
parent
15059fe005
commit
4d53e13a28
@ -99,6 +99,7 @@ class Sizer {
|
||||
|
||||
class FlexSizer extends Sizer {
|
||||
setItemSize(item, size) {
|
||||
item.style.flexGrow = `0`;
|
||||
item.style.flexBasis = `${Math.round(size)}px`;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user