You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03: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:
@@ -99,6 +99,7 @@ class Sizer {
|
||||
|
||||
class FlexSizer extends Sizer {
|
||||
setItemSize(item, size) {
|
||||
item.style.flexGrow = `0`;
|
||||
item.style.flexBasis = `${Math.round(size)}px`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user