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
Bruno Windels 2018-10-22 15:56:39 +02:00
parent 15059fe005
commit 4d53e13a28
1 changed files with 1 additions and 0 deletions

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`;
}
}