aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-05-11 17:13:53 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-05-11 17:13:53 -0400
commit7e1f89f48d1c4e49dea78dff1c1983e75a11a6a6 (patch)
tree299080590d960bbb9bef84912a78529e43b1c8ce /src/client/views/DocumentDecorations.tsx
parenta3839d4b5a2180e2e80fa79f6eb4459e2976f380 (diff)
fixed issues with text auto height and scaled documents. allowed #tagging in text notes to support muliple values with ';'. DashFieldviews can have multiple values, too. logout is moved to settings.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 9669c21a9..a3c476125 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -237,6 +237,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
return false;
}
+ _initialAutoHeight = false;
@action
onPointerDown = (e: React.PointerEvent): void => {
setupMoveUpEvents(this, e, this.onPointerMove, this.onPointerUp, (e) => { });
@@ -251,6 +252,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
}
this._snapX = e.pageX;
this._snapY = e.pageY;
+ this._initialAutoHeight = true;
}
onPointerMove = (e: PointerEvent, down: number[], move: number[]): boolean => {
@@ -353,7 +355,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
} else {
dW && (doc._width = actualdW);
dH && (doc._height = actualdH);
- dH && doc._autoHeight && (doc._autoHeight = false);
+ dH && this._initialAutoHeight && (doc._autoHeight = this._initialAutoHeight = false);
}
}
}));
@@ -362,6 +364,10 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
@action
onPointerUp = (e: PointerEvent): void => {
+ SelectionManager.SelectedDocuments().map(dv => {
+ dv.layoutDoc._delayAutoHeight && (dv.layoutDoc._autoHeight = true);
+ dv.layoutDoc._delayAutoHeight = undefined;
+ });
this._resizeHdlId = "";
this.Interacting = false;
(e.button === 0) && this._resizeUndo?.end();