mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 575291 - Hide the Firefox button during print preview. r=gavin
This commit is contained in:
parent
c31a49ab16
commit
e8b69980db
@ -2675,15 +2675,9 @@ var PrintPreviewListener = {
|
||||
this._toggleAffectedChrome();
|
||||
},
|
||||
_toggleAffectedChrome: function () {
|
||||
// chrome to toggle includes:
|
||||
// (*) menubar
|
||||
// (*) navigation bar
|
||||
// (*) bookmarks toolbar
|
||||
// (*) tabstrip
|
||||
// (*) browser messages
|
||||
// (*) sidebar
|
||||
// (*) find bar
|
||||
// (*) statusbar
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
updateAppButtonDisplay();
|
||||
#endif
|
||||
|
||||
gNavToolbox.hidden = gInPrintPreviewMode;
|
||||
|
||||
@ -4716,7 +4710,9 @@ var TabsOnTop = {
|
||||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
function updateAppButtonDisplay() {
|
||||
var displayAppButton = window.menubar.visible &&
|
||||
var displayAppButton =
|
||||
!gInPrintPreviewMode &&
|
||||
window.menubar.visible &&
|
||||
document.getElementById("toolbar-menubar").getAttribute("autohide") == "true";
|
||||
|
||||
document.getElementById("appmenu-button-container").hidden = !displayAppButton;
|
||||
|
Loading…
Reference in New Issue
Block a user