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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue