From 41d444d7d7b738e590c68ed7c212580ef4c680ae Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Tue, 24 Aug 2021 13:08:31 +0200 Subject: [PATCH] Properly use item container --- src/resizer/resizer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resizer/resizer.ts b/src/resizer/resizer.ts index 57f3a1e289..cadeadcc60 100644 --- a/src/resizer/resizer.ts +++ b/src/resizer/resizer.ts @@ -178,8 +178,9 @@ export default class Resizer { const vertical = resizeHandle.classList.contains(this.classNames.vertical); const reverse = this.isReverseResizeHandle(resizeHandle); const Distributor = this.distributorCtor; + const useItemContainer = this.config && this.config.handler ? this.container : undefined; const sizer = Distributor.createSizer(this.container, vertical, reverse); - const item = Distributor.createItem(resizeHandle, this, sizer, this.container); + const item = Distributor.createItem(resizeHandle, this, sizer, useItemContainer); const distributor = new Distributor(item); return { sizer, distributor }; }