Skip to content
Snippets Groups Projects
Verified Commit a191ab73 authored by ma1's avatar ma1
Browse files

fixup! Bug 32308: use direct browser sizing for letterboxing.

Bug 41573: fix needless letterboxing on startup windows at some resolutions.
parent e929baa6
1 merge request!515Bug 41573: fix needless letterboxing on startup windows at some resolutions.
......@@ -413,9 +413,10 @@ class _RFPHelper {
[containerWidth, containerHeight],
] = await win.promiseDocumentFlushed(() =>
// Read layout info only inside this callback and do not write, to avoid additional reflows
[aBrowser, browserParent, browserContainer]
.map(e => e.getBoundingClientRect())
.map(r => [r.width, r.height])
[aBrowser, browserParent, browserContainer].map(element => [
element.clientWidth,
element.clientHeight,
])
);
log(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment