Fix Placement size calculation
Margin is not included in the widget size anymore
Don't reset the window position if it has already been shown
[Mac] Fix size calculation issues when using margins