diff options
| author | bob <bcz@cs.brown.edu> | 2019-01-31 13:19:39 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-01-31 13:19:39 -0500 |
| commit | 73bff98b9476df0ecc91af548d80b30f56967a8d (patch) | |
| tree | 9764fc4482522a09a61056608ee0c3bb8dfde1fd /src/views/collections | |
| parent | e882783aeb3e425c339a15d80e602674261d2823 (diff) | |
working?
Diffstat (limited to 'src/views/collections')
| -rw-r--r-- | src/views/collections/CollectionDockingView.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/views/collections/CollectionDockingView.tsx b/src/views/collections/CollectionDockingView.tsx index b64e4179d..e1d36864f 100644 --- a/src/views/collections/CollectionDockingView.tsx +++ b/src/views/collections/CollectionDockingView.tsx @@ -16,6 +16,7 @@ import 'golden-layout/src/css/goldenlayout-dark-theme.css'; import * as GoldenLayout from "golden-layout"; import * as ReactDOM from 'react-dom'; import { DragManager } from "../../util/DragManager"; +import { CollectionFreeFormView } from "./CollectionFreeFormView"; @observer export class CollectionDockingView extends React.Component<CollectionViewProps> { @@ -68,6 +69,9 @@ export class CollectionDockingView extends React.Component<CollectionViewProps> componentDidMount: () => void = () => { if (this._containerRef.current && CollectionDockingView.UseGoldenLayout) { this.goldenLayoutFactory(); + window.addEventListener('resize', function (event) { + CollectionDockingView.myLayout.updateSize(window.innerWidth, window.innerHeight); + }); } } private nextId = (function () { var _next_id = 0; return function () { return _next_id++; } })(); |
