Closed Bug 386406 Opened 17 years ago Closed 10 years ago

restore window size not remembered on restart at high DPI (144 or higher)

Categories

(Core :: XUL, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mrmazda, Unassigned)

References

Details

Tested on SM trunk 2007062901 and FF trunk 2007062904 on SUSE 10.2/KDE and Kubuntu 7.04

To reproduce:
1-start X at 144 DPI or above (or set pref layout.css.dpi to 144 or above)
2-start SM or FF
3-size window to something between default height & width and fullscreen
4-close SM/FF
5-open SM or FF

Actual behavior:
1-window opens at 800x577 (according to localstore.rdf)

Expected behavior:
1-window opens at same size it was when closed
I have no setup to reproduce this, but I doubt it's RDF itself. Moving over to XUL.

I have a few questions, though: Does any resizing not work, or is it just a problem starting at a particular size? Can you check with DOM Inspector what the window size would be?
Component: RDF → XP Toolkit/Widgets: XUL
QA Contact: rdf → xptoolkit.xul
Maybe Roc or Enn can help.
Also happens on WinXP 2007062914 Minefield.

(In reply to comment #1)
> I have a few questions, though: Does any resizing not work, or is it just a
> problem starting at a particular size? Can you check with DOM Inspector what
> the window size would be?
 
At 144 DPI, as long as the window size after opening the app is reset to larger than 800 by 57X and smaller than fullscreen, on reopen the size will be 800 wide by 579 high on Win or 577 high on Linux. localstore.rdf logs the last browser.xul#main-window height and width at actual, which are twice the sizes reported by Domi.

Domi and CZ windows also reopen to 800x57X instead of last restore size.
OS: Linux → All
Blocks: pixels
No longer depends on: pixels
Blocks: 378927
Axel, all anyone need do to test is goto about:config -> layout.css.dpi and set to 144.

The px dimensions mentioned in my previous comments are all based on running 1600x1200. I just noticed that when running 1920x1440 in OpenSUSE 11.0a3 Factory the width and height remembered in localstore.rdf are the actual device px window sizes, but on reopen the remembered width is 960 device px, the height, 720 device px. If in this 1/4 screen (before any resize) window is opened: 

http://mrmazda.no-ip.com/auth/dpi-screen-window.html ( see bug 424375 )

screen.width is claimed to equal window.outerWidth (960)
screen.height is claimed to equal window.outerHeight (720)

I restarted @ 1400x1050 with X forced to 144 DPI, and the remembered window size was also half screen height & width, 700 device px by 525 device px.
In up to date Kubuntu Hardy's FF 3.0b4 2008031317, this bug does not exist at 144 or 192 DPI.
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
I suspect this is the same as bug 471729 (persistent window sizes are not properly converted to CSS pixels when written out).
WORKSFORME since a very long time ago.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.