mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-17 15:21:53 +00:00
fix: Fixer resizing the sidebar break the urlbar formatting, b=(no-bug), c=common, workspaces
This commit is contained in:
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user