aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-06 10:49:20 -0500
committerbobzel <zzzman@gmail.com>2025-03-06 10:49:20 -0500
commit28792ad2da9f5dfab96f98f34a11136bd1453e0f (patch)
treefc77258b694b1bab4e39b8bef313538ff9b9fecd /src/client/views/DocumentDecorations.tsx
parent1256ea80f4f1feedf9344020d1bb5fbbaf8e21a4 (diff)
fixed resizing height to be > 10 pixels. split pivotView out of timeView.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index d9b6bdf1a..54e050f9f 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -36,7 +36,6 @@ import { ImageBox } from './nodes/ImageBox';
import { OpenWhere, OpenWhereMod } from './nodes/OpenWhere';
import { FormattedTextBox } from './nodes/formattedText/FormattedTextBox';
import { TagsView } from './TagsView';
-import { ImageField } from '../../fields/URLField';
interface DocumentDecorationsProps {
PanelWidth: number;
@@ -567,7 +566,7 @@ export class DocumentDecorations extends ObservableReactComponent<DocumentDecora
}
doc._width = Math.max(NumCast(doc._width_min, 25), NumCast(doc._width) * scale.x);
- doc._height = Math.max(NumCast(doc._height_min), NumCast(doc._height) * scale.y);
+ doc._height = Math.max(NumCast(doc._height_min, 10), NumCast(doc._height) * scale.y);
const { deltaX, deltaY } = this.realignRefPt(doc, refCent, initWidth || 1, initHeight || 1);
doc.x = NumCast(doc.x) + deltaX;
doc.y = NumCast(doc.y) + deltaY;