diff options
| author | bobzel <zzzman@gmail.com> | 2019-02-13 00:16:24 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2019-02-13 00:16:24 -0500 |
| commit | 39988ec578329695d61a090fce7693c4c6217bbd (patch) | |
| tree | 8eddbb021fa5d43169e2ef2e954af97de2c87824 /src/client/views/collections/CollectionDockingView.tsx | |
| parent | 9cb0bf595b47d6a76113e3ed2f99d34e1713904e (diff) | |
last cleanup
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 914ea72fd..725b68a54 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -265,8 +265,8 @@ export class CollectionDockingView extends CollectionViewBase { const value: Document[] = Document.GetData(fieldKey, ListField, []); // bcz: not sure why, but I need these to force the flexlayout to update when the collection size changes. var s = this.props.ContainingDocumentView != undefined ? this.props.ContainingDocumentView!.ScalingToScreenSpace : 1; - var w = Document.GetData(KeyStore.Width, NumberField, Number(0)) / s; - var h = Document.GetData(KeyStore.Height, NumberField, Number(0)) / s; + var w = Document.GetNumber(KeyStore.Width, 0) / s; + var h = Document.GetNumber(KeyStore.Height, 0) / s; var chooseLayout = () => { if (!CollectionDockingView.UseGoldenLayout) |
