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:
Bruno Windels 2018-10-22 15:56:39 +02:00
parent 15059fe005
commit 4d53e13a28

View file

@ -99,6 +99,7 @@ class Sizer {
class FlexSizer extends Sizer {
setItemSize(item, size) {
item.style.flexGrow = `0`;
item.style.flexBasis = `${Math.round(size)}px`;
}
}