diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-05-16 21:02:15 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-05-16 21:02:15 -0400 |
commit | 530dc40f7519b8288d91db61103468ab713dfbdd (patch) | |
tree | a1fab8ca8fffab5f97c13b529fb2245ac5680a65 /src/client/views/nodes/DocumentView.tsx | |
parent | b29a0d1cef60b55f609fcd94ad38232ae557e681 (diff) |
fixed some small layout issues related to isButton and templates
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 428dd9b36..40ad55d25 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -224,6 +224,9 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu if (doc.isButton && !doc.nativeWidth) { doc.nativeWidth = this.props.Document[WidthSym](); doc.nativeHeight = this.props.Document[HeightSym](); + } else { + + doc.nativeWidth = doc.nativeHeight = undefined; } } fullScreenClicked = (e: React.MouseEvent): void => { |