зеркало из https://github.com/mozilla/gecko-dev.git
Bug 425474 After toolbar customize, back and forward buttons display fall below. p=Atsushi Sakai<dev-null@hotmail.co.jp>, r=gavin, bfx3=beltzner
This commit is contained in:
Родитель
028bf90c45
Коммит
dd3b2ac315
|
@ -233,7 +233,8 @@ function SetClickAndHoldHandlers()
|
|||
|
||||
// Bug 414797: Clone the dropmarker's menu into both the back and
|
||||
// the forward buttons.
|
||||
if (document.getElementById("unified-back-forward-button")) {
|
||||
var unifiedButton = document.getElementById("unified-back-forward-button");
|
||||
if (unifiedButton && !unifiedButton._clickHandlersAttached) {
|
||||
var popup = document.getElementById("back-forward-dropmarker")
|
||||
.firstChild.cloneNode(true);
|
||||
var backButton = document.getElementById("back-button");
|
||||
|
@ -245,6 +246,7 @@ function SetClickAndHoldHandlers()
|
|||
forwardButton.setAttribute("type", "menu-button");
|
||||
forwardButton.appendChild(popup);
|
||||
_addClickAndHoldListenersOnElement(forwardButton);
|
||||
unifiedButton._clickHandlersAttached = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче