diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-04-23 21:24:57 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-04-23 21:24:57 -0400 |
| commit | 86fb73ccadd12ac07fea7a162295b287d6651c48 (patch) | |
| tree | 4fc5ee159d83a73a642e6efb7a20688790a17087 /src/client/views/collections/CollectionDockingView.tsx | |
| parent | d3a0ed3292a3ca83f83d6f75e50bde494b2e1d47 (diff) | |
fixes for text box input and dock view problems.
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 1ea18ed42..84159635a 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -326,8 +326,14 @@ export class DockedFrameRenderer extends React.Component<DockedFrameProps> { Server.GetField(this.props.documentId, action((f: Opt<Field>) => this._document = f as Document)); } - nativeWidth = () => this._document!.GetNumber(KeyStore.NativeWidth, this._panelWidth); - nativeHeight = () => this._document!.GetNumber(KeyStore.NativeHeight, this._panelHeight); + nativeWidth = () => { + let pw = this._document!.GetNumber(KeyStore.NativeWidth, 0); + return pw ? pw : this._panelWidth; + } + nativeHeight = () => { + let pw = this._document!.GetNumber(KeyStore.NativeHeight, 0); + return pw ? pw : this._panelHeight; + } contentScaling = () => { let wscale = this._panelWidth / (this.nativeWidth() ? this.nativeWidth() : this._panelWidth); if (wscale * this.nativeHeight() > this._panelHeight) |
