no-bug: Fixed boosts window not resizing back properly (gh-14007)

This commit is contained in:
mr. m
2026-06-04 00:38:39 +02:00
committed by GitHub
parent b812bff07e
commit 5383737b23
5 changed files with 10 additions and 18 deletions

View File

@@ -374,12 +374,6 @@ export class nsZenBoostEditor {
}
windowElem.setAttribute("editor", "code");
// Store the old boost editor width.
// The window needs the outer width which includes
// window chrome. This results in the window
// being smaller than it should be
this._boostEditorWidth = this.editorWindow.outerWidth;
this.editorWindow.requestAnimationFrame(() => {
this.editorWindow.resizeTo(
this._codeEditorWidth,
@@ -413,7 +407,11 @@ export class nsZenBoostEditor {
}
windowElem.setAttribute("editor", "boost");
this.editorWindow.requestAnimationFrame(() => {
this.doc.getElementById("zen-boost-editor-root").style.display = "flex";
this.doc.getElementById("zen-boost-code-editor-root").style.display =
"none";
this.editorWindow.promiseDocumentFlushed(() => {
this.editorWindow.resizeTo(
this._boostEditorWidth,
this.editorWindow.outerHeight
@@ -424,10 +422,6 @@ export class nsZenBoostEditor {
this.editorWindow.screenY
);
}
this.doc.getElementById("zen-boost-editor-root").style.display = "flex";
this.doc.getElementById("zen-boost-code-editor-root").style.display =
"none";
});
// Disable picker mode

View File

@@ -139,6 +139,7 @@ body {
user-select: none;
width: 100%;
min-height: 582px;
height: 100%;
padding: 0;
margin: 0;

View File

@@ -322,7 +322,6 @@ zen-workspace {
height: 100%;
overflow: hidden;
color: var(--toolbox-textcolor);
will-change: transform;
@media not (prefers-reduced-motion: reduce) {
transition: padding-top 0.1s;

View File

@@ -1131,7 +1131,6 @@
transition:
max-height 0.3s ease-out,
grid-template-columns 0.3s ease-out;
will-change: transform;
opacity: 1;
--min-essentials-width-wrap: calc(var(--tab-min-height) + 4px);
grid-template-columns: repeat(auto-fit, minmax(max(23.7%, var(--min-essentials-width-wrap)), 1fr));

View File

@@ -25,11 +25,11 @@ tags = "os_integration"
["browser_content_sandbox_fs.js"]
skip-if = [
"os == 'win' && os_version == '11.26100' && arch == 'x86' && debug", # bug 1379635
"os == 'win' && os_version == '11.26200' && arch == 'x86' && debug", # bug 1379635
"os == 'win' && os_version == '11.26100' && arch == 'x86_64' && debug", # bug 1379635
"os == 'win' && os_version == '11.26200' && arch == 'x86_64' && debug", # bug 1379635
"os == 'mac' && os_version == '15.30' && arch == 'aarch64'", # Bug 2023967
"os == 'win' && os_version == '11.26100' && arch == 'x86' && debug", # bug 1379635
"os == 'win' && os_version == '11.26100' && arch == 'x86_64' && debug", # bug 1379635
"os == 'win' && os_version == '11.26200' && arch == 'x86' && debug", # bug 1379635
"os == 'win' && os_version == '11.26200' && arch == 'x86_64' && debug", # bug 1379635
]
["browser_content_sandbox_syscalls.js"]
@@ -38,7 +38,6 @@ skip-if = [
skip-if = [
"os == 'win' && os_version == '11.26200' && arch == 'x86' && debug", # bug 2028636
"os == 'win' && os_version == '11.26200' && arch == 'x86_64' && debug", # bug 2028636
"os == 'linux' && debug && artifact", # bug 1945658
]
run-if = [
"debug",