diff options
author | bobzel <zzzman@gmail.com> | 2020-09-08 19:26:24 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-08 19:26:24 -0400 |
commit | 483a4d35ba2c522b889c7bd9b839a0af131ec0bb (patch) | |
tree | 3a0884933242089a38d37931fbb40253e7353ab7 /src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx | |
parent | 1f1ecb0b86d166c67388e560c6716079e16ea962 (diff) |
updated the way NativeWidth/Height props work so that, when specified, they override locally specified values
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx b/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx index b4f648273..8524786c8 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx @@ -319,8 +319,8 @@ export class FormattedTextBoxComment { whenActiveChanged={returnFalse} bringToFront={returnFalse} ContentScaling={returnOne} - NativeWidth={() => target._nativeWidth ? NumCast(target._nativeWidth) : 0} - NativeHeight={() => target._nativeHeight ? NumCast(target._nativeHeight) : 0} + NativeWidth={target._nativeWidth ? (() => NumCast(target._nativeWidth)) : undefined} + NativeHeight={target._natvieHeight ? (() => NumCast(target._nativeHeight)) : undefined} /> </div> </div>; |