mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 588295 - Zoom out doesn't work for the same tab [r=dolske a=dolske]
--HG-- extra : rebase_source : 269329afabc8de08036eb9a476c7a61dffd67b8d
This commit is contained in:
parent
a67db40079
commit
2ef87e7c0d
@ -523,16 +523,17 @@ window.TabItem.prototype = Utils.extend(new Item(), new Subscribable(), {
|
||||
|
||||
function onZoomDone() {
|
||||
TabItems.resumePainting();
|
||||
|
||||
$tabEl
|
||||
.css(orig.css())
|
||||
.removeClass("front");
|
||||
|
||||
// If it's not focused, the onFocus lsitener would handle it.
|
||||
if (gBrowser.selectedTab == tab)
|
||||
UI.onTabSelect(tab);
|
||||
else
|
||||
gBrowser.selectedTab = tab;
|
||||
|
||||
$tabEl
|
||||
.css(orig.css())
|
||||
.removeClass("front");
|
||||
|
||||
if (isNewBlankTab)
|
||||
gWindow.gURLBar.focus();
|
||||
|
||||
@ -589,15 +590,12 @@ window.TabItem.prototype = Utils.extend(new Item(), new Subscribable(), {
|
||||
duration: 300,
|
||||
easing: 'cubic-bezier', // note that this is legal easing, even without parameters
|
||||
complete: function() { // note that this will happen on the DOM thread
|
||||
$tab.removeClass('front');
|
||||
self.setZoomPrep(false);
|
||||
|
||||
GroupItems.setActiveOrphanTab(null);
|
||||
|
||||
TabItems.resumePainting();
|
||||
|
||||
self._zoomPrep = false;
|
||||
self.setBounds(self.getBounds(), true, {force: true});
|
||||
|
||||
if (typeof complete == "function")
|
||||
complete();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user