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:
@@ -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");
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user