forked from ZenBrowserMirrors/zen-desktop
fix: Fixer resizing the sidebar break the urlbar formatting, b=(no-bug), c=common, workspaces
This commit is contained in:
parent
a6bc8d7105
commit
de175bff11
3 changed files with 12 additions and 3 deletions
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/browser/components/urlbar/UrlbarValueFormatter.sys.mjs b/browser/components/urlbar/UrlbarValueFormatter.sys.mjs
|
||||||
|
index dfa91b76ad3890ceadb1b1b5d7a63b7074fbb776..6369fa1cdb242de32338bbce6debcdab2a04ca02 100644
|
||||||
|
--- a/browser/components/urlbar/UrlbarValueFormatter.sys.mjs
|
||||||
|
+++ b/browser/components/urlbar/UrlbarValueFormatter.sys.mjs
|
||||||
|
@@ -585,6 +585,7 @@ export class UrlbarValueFormatter {
|
||||||
|
this.window.requestAnimationFrame(() => {
|
||||||
|
if (instance == this._resizeInstance) {
|
||||||
|
this.#ensureFormattedHostVisible();
|
||||||
|
+ this._formatURL();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, 100);
|
|
@ -84,7 +84,6 @@ var gZenUIManager = {
|
||||||
);
|
);
|
||||||
gZenVerticalTabsManager.actualWindowButtons.removeAttribute('zen-has-hover');
|
gZenVerticalTabsManager.actualWindowButtons.removeAttribute('zen-has-hover');
|
||||||
gZenVerticalTabsManager.recalculateURLBarHeight();
|
gZenVerticalTabsManager.recalculateURLBarHeight();
|
||||||
setTimeout(gURLBar.formatValue.bind(gURLBar), 350);
|
|
||||||
if (!this._preventToolbarRebuild) {
|
if (!this._preventToolbarRebuild) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
gZenWorkspaces.updateTabsContainers();
|
gZenWorkspaces.updateTabsContainers();
|
||||||
|
|
|
@ -2540,8 +2540,6 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(gURLBar.formatValue.bind(gURLBar), 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async _fixCtrlTabBehavior() {
|
async _fixCtrlTabBehavior() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue