diff options
author | bobzel <zzzman@gmail.com> | 2022-06-04 23:21:17 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-06-04 23:21:17 -0400 |
commit | 84e843ccb21dcb95dff11e34b749f4587fc0fd86 (patch) | |
tree | fe3d482f56c479927d451ee3758bfde1ea0f8326 /src/client/views/OverlayView.tsx | |
parent | 2fd6875a9e0642b29f74cbd62406b05bbb7c40e8 (diff) |
fixed mini-pres view css, fixed interaction with mini-pres by fixing overlayView panelWidth/height, fixed tabMap to get updated properly to allow CloseSplit to work, etc.
Diffstat (limited to 'src/client/views/OverlayView.tsx')
-rw-r--r-- | src/client/views/OverlayView.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/views/OverlayView.tsx b/src/client/views/OverlayView.tsx index ebad2981d..18b87e3d5 100644 --- a/src/client/views/OverlayView.tsx +++ b/src/client/views/OverlayView.tsx @@ -2,10 +2,10 @@ import { action, computed, observable } from "mobx"; import { observer } from "mobx-react"; import * as React from "react"; import ReactLoading from 'react-loading'; -import { Doc } from "../../fields/Doc"; +import { Doc, HeightSym, WidthSym } from "../../fields/Doc"; import { Id } from "../../fields/FieldSymbols"; import { Cast, NumCast } from "../../fields/Types"; -import { emptyFunction, returnEmptyDoclist, returnEmptyFilter, returnFalse, returnOne, returnTrue, setupMoveUpEvents, Utils } from "../../Utils"; +import { emptyFunction, returnEmptyDoclist, returnEmptyFilter, returnFalse, returnOne, returnTrue, returnZero, setupMoveUpEvents, Utils } from "../../Utils"; import { DocUtils } from "../documents/Documents"; import { CurrentUserUtils } from "../util/CurrentUserUtils"; import { DragManager } from "../util/DragManager"; @@ -186,12 +186,12 @@ export class OverlayView extends React.Component { bringToFront={emptyFunction} addDocument={undefined} removeDocument={undefined} - PanelWidth={returnOne} - PanelHeight={returnOne} + PanelWidth={d[WidthSym]} + PanelHeight={d[HeightSym]} ScreenToLocalTransform={Transform.Identity} renderDepth={1} - isDocumentActive={returnTrue} - isContentActive={emptyFunction} + isDocumentActive={returnFalse} + isContentActive={returnTrue} whenChildContentsActiveChanged={emptyFunction} focus={DocUtils.DefaultFocus} styleProvider={DefaultStyleProvider} |