From 4d058ec6e2aaa20f240de5d65680e396f035f36e Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 2 Sep 2021 12:00:58 -0400 Subject: fixed dragging things into collections. reactived fitWidth properties button --- src/client/views/PropertiesButtons.tsx | 2 +- src/client/views/nodes/DocumentView.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/PropertiesButtons.tsx b/src/client/views/PropertiesButtons.tsx index 286365fa6..0bcdbac19 100644 --- a/src/client/views/PropertiesButtons.tsx +++ b/src/client/views/PropertiesButtons.tsx @@ -213,7 +213,7 @@ export class PropertiesButtons extends React.Component<{}, {}> { {toggle(this.lockButton)} {toggle(this.dictationButton, { display: isNovice ? "none" : "" })} {toggle(this.onClickButton)} - {toggle(this.fitWidthButton, { display: isNovice ? "none" : "" })} + {toggle(this.fitWidthButton)} {toggle(this.fitContentButton, { display: !isFreeForm ? "none" : "" })} {toggle(this.autoHeightButton, { display: !isText && !isStacking && !isTree ? "none" : "" })} {toggle(this.maskButton, { display: !isInk ? "none" : "" })} diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 3b03643e8..b2629200d 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -784,6 +784,7 @@ export class DocumentViewInternal extends DocComponent Doc, forward?: () => boolean, back?: () => boolean }) => this._componentView = view); isContentActive = (outsideReaction?: boolean) => { return CurrentUserUtils.SelectedTool !== InkTool.None || + SnappingManager.GetIsDragging() || this.props.rootSelected() || this.props.Document.forceActive || this.props.isSelected(outsideReaction) || -- cgit v1.2.3-70-g09d2