From 73bff98b9476df0ecc91af548d80b30f56967a8d Mon Sep 17 00:00:00 2001 From: bob Date: Thu, 31 Jan 2019 13:19:39 -0500 Subject: working? --- src/views/collections/CollectionDockingView.tsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/views/collections') 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 { @@ -68,6 +69,9 @@ export class CollectionDockingView extends React.Component 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++; } })(); -- cgit v1.2.3-70-g09d2