diff options
author | sharkiecodes <lanyi_stroud@brown.edu> | 2025-06-13 10:17:46 -0400 |
---|---|---|
committer | sharkiecodes <lanyi_stroud@brown.edu> | 2025-06-13 10:17:46 -0400 |
commit | fbf768dd4c7734cfdcca38fd1dc1ecf63c64d985 (patch) | |
tree | 1c267a3762543b469805d0e08e13f9d311e6a036 /src/client/views/nodes/ImageBox.tsx | |
parent | 2c947f1ba7785ccbb705c0dce7e6bd64821da99d (diff) | |
parent | a7a7a5a75845d40f835a38a3af24f000db50009b (diff) |
Merge branch 'master' into lanyi-branch
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index a99421f6d..1714b7a3e 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -997,8 +997,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { rejectDrop = (de: DragManager.DropEvent, subView?: DocumentView | undefined) => (this.dataDoc[this.fieldKey] === undefined ? true : (this._props.rejectDrop?.(de, subView) ?? false)); render() { TraceMobx(); - const borderRad = this._props.styleProvider?.(this.layoutDoc, this._props, StyleProp.BorderRounding) as string; - const borderRadius = borderRad?.includes('px') ? `${Number(borderRad.split('px')[0]) / (this._props.NativeDimScaling?.() || 1)}px` : borderRad; + const borderRadius = this._props.styleProvider?.(this.layoutDoc, this._props, StyleProp.BorderRounding) as string; return ( <> <div |