TiddlyWiki / TiddlyDesktop

A custom desktop browser for TiddlyWiki 5 and TiddlyWiki Classic, based on nw.js
1.63k stars 121 forks source link

Windows size saving/restoring problem on Windows 10 #299

Open pjc234 opened 1 month ago

pjc234 commented 1 month ago

I'm not sure if this is TiddlyDesktop or nwjs issue, but it started with v0.0.15 and still exists in v0.0.20.

Every time I close and open wiki file or main window its size grows by +16 pixels horizontally and +39 pixels vertically. Checked with every version form 0.0.15 to 0.0.20 by comparing values in "User Data\Default\Preferences", key: browser.app_window_placement (right and bottom values are increasing). I suspect these 16 and 39 pixels might be connected with border width and titlebar height in Windows 10.

Because of this problem I keep working on v0.0.13 for long time, but I need newer version to handle some css rules better than this old version can. Now I have a dilemma: keep window sizes or get correct css rendering.

Any hint how to deal with this?