diff options
| author | eleanor-park <eleanor_park@brown.edu> | 2024-11-11 01:18:58 -0500 |
|---|---|---|
| committer | eleanor-park <eleanor_park@brown.edu> | 2024-11-11 01:18:58 -0500 |
| commit | 8a01bf324f8313306a578b6e8d5736d8bfcd7dd9 (patch) | |
| tree | 3996410b27758bcf292d8ed4f4bf18b64b48fc4a /src/client/views/DocumentDecorations.tsx | |
| parent | 41a8e1c7f1943145bf7099c70ef3eb6540fe0d26 (diff) | |
| parent | 4ab636e338a11e8153d43adddb0e0d3e6bad57ec (diff) | |
changes for demo
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 4 |
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; |
