diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-06-18 22:51:46 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-06-18 22:51:46 -0400 |
| commit | 3b880d7b15b7107049ae27601b9f759b17f7fde9 (patch) | |
| tree | 5dfe9aa702cee1f5e09b0d807969692013b192a4 /src/client/views/collections/CollectionDockingView.tsx | |
| parent | ca126adda9e4def83fb5c2e07e382917ca0b4ee0 (diff) | |
added initial keyboard shortcuts for adding and moving docs in TreeView. fixed image drag bug.
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index f2b3528b8..bd3020a78 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -467,6 +467,7 @@ export class DockedFrameRenderer extends React.Component<DockedFrameProps> { let docHeight = NumCast(this._document!.height); if (NumCast(this._document!.nativeWidth) || !docWidth || !this._panelWidth || !this._panelHeight) return 1; if (StrCast(this._document!.layout).indexOf("Collection") === -1 || + !BoolCast(this._document!.fitToContents, false) || NumCast(this._document!.viewType) !== CollectionViewType.Freeform) return 1; let scaling = Math.max(1, this._panelWidth / docWidth * docHeight > this._panelHeight ? this._panelHeight / docHeight : this._panelWidth / docWidth); |
