baudren / NoteOrganiser

Scientific Note Taking
MIT License
13 stars 6 forks source link

Started to improve initial display for #37 #55

Closed baudren closed 9 years ago

baudren commented 9 years ago

Forgot to merge that a while back!

Move the resizing call after the mainWindow.show(), to get the whole geometry of the window (with the decoration added by Windows after the show()). The problem with this design is that the added geometry is assymetric between the top and the bottom, so just removing half of that does not result in a center document.

Right now, I added a ad-hoc factor of 3./4, but there is probably a better way.

landscape-bot commented 9 years ago

Code Health Repository health decreased by 0.73% when pulling 878a9a7 on initial_size into f6f26e8 on devel.