From 4d53e13a28be36f68a2cf844edd4b18f92ae664a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 22 Oct 2018 15:56:39 +0200 Subject: [PATCH] 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. --- src/resizer/sizer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/resizer/sizer.js b/src/resizer/sizer.js index 4ae35e020a..303214854b 100644 --- a/src/resizer/sizer.js +++ b/src/resizer/sizer.js @@ -99,6 +99,7 @@ class Sizer { class FlexSizer extends Sizer { setItemSize(item, size) { + item.style.flexGrow = `0`; item.style.flexBasis = `${Math.round(size)}px`; } }