Skip to content

Commit 94ba529

Browse files
authored
Keep panels displayed in full screen view (#979)
1 parent a44f2e2 commit 94ba529

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

packages/base/src/mainview/mainView.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,24 @@ export class MainView extends React.Component<IProps, IStates> {
23572357
width: '100%',
23582358
height: '100%',
23592359
}}
2360-
/>
2360+
>
2361+
<div className="jgis-panels-wrapper">
2362+
{this._state && (
2363+
<LeftPanel
2364+
model={this._model}
2365+
commands={this._mainViewModel.commands}
2366+
state={this._state}
2367+
></LeftPanel>
2368+
)}
2369+
{this._formSchemaRegistry && this._annotationModel && (
2370+
<RightPanel
2371+
model={this._model}
2372+
formSchemaRegistry={this._formSchemaRegistry}
2373+
annotationModel={this._annotationModel}
2374+
></RightPanel>
2375+
)}
2376+
</div>
2377+
</div>
23612378
</div>
23622379
<StatusBar
23632380
jgisModel={this._model}
@@ -2366,23 +2383,6 @@ export class MainView extends React.Component<IProps, IStates> {
23662383
scale={this.state.scale}
23672384
/>
23682385
</div>
2369-
2370-
<div className="jgis-panels-wrapper">
2371-
{this._state && (
2372-
<LeftPanel
2373-
model={this._model}
2374-
commands={this._mainViewModel.commands}
2375-
state={this._state}
2376-
></LeftPanel>
2377-
)}
2378-
{this._formSchemaRegistry && this._annotationModel && (
2379-
<RightPanel
2380-
model={this._model}
2381-
formSchemaRegistry={this._formSchemaRegistry}
2382-
annotationModel={this._annotationModel}
2383-
></RightPanel>
2384-
)}
2385-
</div>
23862386
</>
23872387
);
23882388
}

packages/base/style/base.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ button.jp-mod-styled.jp-mod-reject {
9292
right: 0px;
9393
position: absolute;
9494
margin: 5px;
95+
z-index: 40
9596
}
9697

9798
.jgis-left-panel-container {
@@ -100,6 +101,7 @@ button.jp-mod-styled.jp-mod-reject {
100101
top: 30px;
101102
left: 0px;
102103
margin: 5px;
104+
z-index: 40
103105
}
104106

105107
@media (max-width: 768px) {

0 commit comments

Comments
 (0)