From 8ca26551622d36b7856f5c1865498fa9e5d888b5 Mon Sep 17 00:00:00 2001 From: eleanor-park Date: Thu, 25 Jul 2024 23:36:52 -0400 Subject: cleaned up smart draw & palette --- .../collections/collectionFreeForm/CollectionFreeFormView.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/views/collections') diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index f2b94fabc..a298e6ac4 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1301,7 +1301,7 @@ export class CollectionFreeFormView extends CollectionSubView disposer?.()); } - updateIcon = () => + updateIcon = (usePanelDimensions?: boolean) => UpdateIcon( this.layoutDoc[Id] + '-icon' + new Date().getTime(), this.DocumentView?.().ContentDiv!, - NumCast(this.layoutDoc._width), - NumCast(this.layoutDoc._height), + usePanelDimensions ? this._props.PanelWidth() : NumCast(this.layoutDoc._width), + usePanelDimensions ? this._props.PanelHeight() : NumCast(this.layoutDoc._height), this._props.PanelWidth(), this._props.PanelHeight(), 0, -- cgit v1.2.3-70-g09d2