Skip to content

Commit

Permalink
bar: panel zIndex is stored in session
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 25, 2018
1 parent d39cb07 commit 6d9fb37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tracy/assets/Bar/bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
if (this.is(Panel.WINDOW)) {
localStorage.setItem(this.id, JSON.stringify({window: true}));
} else if (pos.width) {
localStorage.setItem(this.id, JSON.stringify({right: pos.right, bottom: pos.bottom}));
localStorage.setItem(this.id, JSON.stringify({right: pos.right, bottom: pos.bottom, zIndex: this.elem.style.zIndex - Tracy.panelZIndex}));
} else {
localStorage.removeItem(this.id);
}
Expand All @@ -203,6 +203,8 @@
this.init();
this.toFloat();
setPosition(this.elem, pos);
this.elem.style.zIndex = Tracy.panelZIndex + (pos.zIndex || 1);
Panel.zIndexCounter = Math.max(Panel.zIndexCounter, (pos.zIndex || 1)) + 1;
}
};

Expand Down

0 comments on commit 6d9fb37

Please sign in to comment.