aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-02-11 18:32:13 -0500
committerbobzel <zzzman@gmail.com>2021-02-11 18:32:13 -0500
commit8d40a1a827bceb3f56f82b4c4c1bad8afaee8494 (patch)
tree64bc56023b0ae90bd09a4adc686ddbf527465bf1 /src
parent7dbd1417fe12b54cdab44fd25adb6c5a9c52bac9 (diff)
fixed imagebox annotation layer sizing. was too tall when in a stackingview and the image was resized small.
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/ImageBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index 286b3bf5f..67397dc51 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -418,7 +418,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps, ImageD
@observable _marqueeing: number[] | undefined;
@observable _savedAnnotations: Dictionary<number, HTMLDivElement[]> = new Dictionary<number, HTMLDivElement[]>();
@computed get annotationLayer() {
- return <div className="imageBox-annotationLayer" style={{ height: Doc.NativeHeight(this.Document) || undefined }} ref={this._annotationLayer} />;
+ return <div className="imageBox-annotationLayer" style={{ height: this.props.PanelHeight() }} ref={this._annotationLayer} />;
}
@action
marqueeDown = (e: React.PointerEvent) => {