Skip to content

Commit e41b39d

Browse files
committed
fix zindex on tab panels since we don't set display none
1 parent 49a1c7e commit e41b39d

File tree

7 files changed

+25
-10
lines changed

7 files changed

+25
-10
lines changed

lib/es5/dock-spawn-ts.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/TabPage.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/TabPage.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/index-min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/index-webcomponent-min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dock-spawn-ts",
3-
"version": "3.11.1",
3+
"version": "3.11.2",
44
"description": "DockSpawn Typescript Version",
55
"license": "MIT",
66
"author": "jochen.kuehner@gmx.de",

src/TabPage.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export class TabPage {
4949
this.handle.destroy();
5050

5151
if (this.container instanceof PanelContainer) {
52+
this.container.elementContentContainer.style.zIndex = '';
5253
let panel = this.container;
5354
delete panel.onTitleChanged;
5455
}
@@ -73,6 +74,13 @@ export class TabPage {
7374
this.selected = flag;
7475
this.handle.setSelected(flag);
7576

77+
if (this.container instanceof PanelContainer) {
78+
if (flag)
79+
this.container.elementContentContainer.style.zIndex = '1';
80+
else
81+
this.container.elementContentContainer.style.zIndex = '';
82+
}
83+
7684
if (!this._initContent)
7785
this.host.contentElement.appendChild(this.containerElement);
7886
this._initContent = true;

0 commit comments

Comments
 (0)