New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SumatraPDF looses its window size when opens a PDF restored from the Recycle Bin #4169
Comments
Can't reproduce. Is it with tabs enabled? Can you make a video? |
Yes, tabs are enabled. Portable SumatraPDF pre-release was used, only the new EXE was put to a usual folder of the program, the sumatrapdfcache folder and SumatraPDF-settings.txt file of the previous version were removed, then after the first start the window was maximized and the "default zoom: fit width" setting was made, no more. |
Video_2024-04-05_204450.mp4I made a video, somehow. |
Thanks, it's not related to deleting a file, restoring maximized state doesn't work. Simpler repro:
It should open maximized but instead of flashes as if were maximized and then it seems it gets resized. At the same time the maxmize button shows as if the window was maximized. So I suspect we first maxmize the window and then resize / reposition the window. |
I can fix it by adding:
in SumatraPDF.cpp@1856 but then it causes to fullscreen even if window wasn't fullscreen when closed. |
Yeah, that logic is complicated and I frankly don't truly understand it anymore. |
SumatraPDF version
pre-release 3.6.16004
but stable 3.5.2 is not affected
Describe the bug
When I open a PDF file restored from the Recycle Bin, SumatraPDF forgets its window size and opens half-screen wide
To Reproduce
Steps to reproduce the behavior:
Expected behavior
SumatraPDF should remember its window size.
File that reproduces the problem
Not related to a specific document.
Screenshots
No screenshots.
Additional context
Windows 10 x64 21H2. SumatraPDF setting: option: default zoom: fit width.
The text was updated successfully, but these errors were encountered: