aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authoreleanor-park <eleanor_park@brown.edu>2024-11-11 01:18:58 -0500
committereleanor-park <eleanor_park@brown.edu>2024-11-11 01:18:58 -0500
commit8a01bf324f8313306a578b6e8d5736d8bfcd7dd9 (patch)
tree3996410b27758bcf292d8ed4f4bf18b64b48fc4a /src/client/views/DocumentDecorations.tsx
parent41a8e1c7f1943145bf7099c70ef3eb6540fe0d26 (diff)
parent4ab636e338a11e8153d43adddb0e0d3e6bad57ec (diff)
changes for demo
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 45dfcb5b8..4dc327d63 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -559,8 +559,8 @@ export class DocumentDecorations extends ObservableReactComponent<DocumentDecora
if (setData) Doc.SetNativeHeight(doc[DocData], NumCast(doc._nativeHeight));
}
- doc._width = Math.max(1, NumCast(doc._width) * scale.x);
- doc._height = Math.max(1, NumCast(doc._height) * scale.y);
+ doc._width = Math.max(NumCast(doc._width_min, 25), NumCast(doc._width) * scale.x);
+ doc._height = Math.max(NumCast(doc._height_min, 25), NumCast(doc._height) * scale.y);
const { deltaX, deltaY } = this.realignRefPt(doc, refCent, initWidth, initHeight);
doc.x = NumCast(doc.x) + deltaX;
doc.y = NumCast(doc.y) + deltaY;