aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-20 12:09:14 -0400
committerbobzel <zzzman@gmail.com>2021-03-20 12:09:14 -0400
commitf7e9d374d2b397a395da48af412323f61538b7d9 (patch)
treefdd8d96510b03d056b7e6accdefe8c972fd7f8ed /src/client/views/DocumentDecorations.tsx
parent05e562534763d1c15218ef82b6cb8e8d9bba35b1 (diff)
cleanup of sidebars for pdf/web - toggle open/close without sizing artifacts - open automatically when adding a note.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 6d8bd30be..50065c17a 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -433,7 +433,7 @@ export class DocumentDecorations extends React.Component<{ boundsLeft: number, b
if (node.className === "mainView-mainContent") inMainMenuPanel = true;
}
const leftBounds = inMainMenuPanel ? 0 : this.props.boundsLeft;
- const topBounds = this.props.boundsTop;
+ const topBounds = LightboxView.LightboxDoc ? 0 : this.props.boundsTop;
bounds.x = Math.max(leftBounds, bounds.x - this._resizeBorderWidth / 2) + this._resizeBorderWidth / 2;
bounds.y = Math.max(topBounds, bounds.y - this._resizeBorderWidth / 2 - this._titleHeight) + this._resizeBorderWidth / 2 + this._titleHeight;
const borderRadiusDraggerWidth = 15;