HomePhabricator
Diffusion MITK 765603638cb0

When the workbench window is out of the (default) screen, center it.

Description

When the workbench window is out of the (default) screen, center it.

Before this change, the window x1,y1 would be adapted while x2,y2
would be fixed (kind of). This would sometimes result in minimal
window widths that would trigger a Qt warning on the console saying

QWindowsWindow::setGeometry: Unable to set geometry [...]

I changed the behavior so that the window will be centered in a
default size of 90% when it does not show on the default screen.
This avoids unusable tiny window sizes.

Signed-off-by: Daniel Maleike <code@maleike.de>

Details

Provenance
maleikeAuthored on Mar 6 2019, 5:29 PM
kislinskPushed on Mar 29 2019, 1:56 PM
Parents
rMITKac93ed9baf58: Fix exception output
Branches
Unknown
Tags
Unknown