Window shrinks by 16px width / 9px height on every launch (regression of #98, still present in 2.9.2)
Markpad version
2.9.2
How did you install it?
Windows — installer (Markpad_…_setup.exe)
OS and version
Windows 11 Pro 25H2 26200.9711
What happens, and what you expected instead
At every window open:
Expected: the window reopens at the same size.
Actual: on every relaunch the window loses exactly 16px of width and 9px of height. It keeps shrinking with each launch.
Analysis The numbers match the Windows 10/11 window frame exactly:
- width: 8px invisible resize border on the left + 8px on the right = 16px
- height: 8px invisible resize border at the bottom + 1px visible top border = 9px
The difference between the full window rect and the visible frame seems to be lost on every save/restore - the size is saved as one and restored as the other (outer vs inner size).
Related #98 was closed by #131, which required tauri-plugin-window-state >= 2.2.2. That fix targeted size drift across monitors with different scaling. This bug happens at 100% DPI, so it has a different cause. Since 2.9.x restores window size with its own session code ("every window comes back"), the cause may now be in Markpad's restore code rather than in the plugin.
Steps to reproduce
- Open Markpad and note the window size.
- Close it without resizing.
- Reopen it.
The Markdown that triggers it
Screenshots, and anything else
No response