Bug 1706901 - Allow the toolbar to shift with position: relative. r=mstange,desktop-theme-reviewers,dao

Differential Revision: https://phabricator.services.mozilla.com/D113612
This commit is contained in:
Harry Twyford
2021-04-28 20:15:38 +00:00
parent 87a020f68e
commit 3468883144

View File

@@ -379,10 +379,12 @@ var FullScreen = {
if (shiftSize > 0) {
toolbox.style.setProperty("transform", `translateY(${shiftSize}px)`);
toolbox.style.setProperty("z-index", "2");
toolbox.style.setProperty("position", "relative");
browserEl.style.setProperty("position", "relative");
} else {
toolbox.style.removeProperty("transform");
toolbox.style.removeProperty("z-index");
toolbox.style.removeProperty("position");
browserEl.style.removeProperty("position");
}
},