Skip to content

Commit

Permalink
Correctly show button after last tab, if used "CustomizableUI" API
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Dec 13, 2013
1 parent cdb57ed commit b51bd9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1972,6 +1972,7 @@ var windowsObserver = {
if("CustomizableUI" in window) try { // Australis
this.addButtonToPalette(window, tb);
window.CustomizableUI.ensureWidgetPlacedInWindow(tb.id, window);
this.updateButtonAfterTabs(window);
_log("Toolbar button: use CustomizableUI.ensureWidgetPlacedInWindow()");
return;
}
Expand Down Expand Up @@ -2071,10 +2072,13 @@ var windowsObserver = {
},
updateToolbars: function(e) {
var window = e.currentTarget;
var document = window.document;
window.setTimeout(function() {
this.setupListAllTabs(window, true);
}.bind(this), 0);
this.updateButtonAfterTabs(window);
},
updateButtonAfterTabs: function(window) {
var document = window.document;
var tbBtn = document.getElementById(this.toolbarButtonId);
this.updateShowAfterTabs(tbBtn, document);
if(!tbBtn)
Expand Down

0 comments on commit b51bd9c

Please sign in to comment.