Commit 7e3e69dd authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

fixup! BB 41631: Prevent weird initial window dimensions caused by subpixel computations

BB 43672: Compensate window.resizeTo truncating by ceiling newwin sizes.
parent bc8cb9b3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -819,7 +819,8 @@ class _RFPHelper {
      if (x11Height < targetHeight) {
        targetHeight = x11Height + 2;
      }
      aWindow.resizeTo(targetWidth, targetHeight);
      // resizeTo truncates on X11, so we compensate.
      aWindow.resizeTo(Math.ceil(targetWidth), Math.ceil(targetHeight));
    } else {
      aWindow.resizeBy(deltaWidth, deltaHeight);
    }