Use availableGeometry instead of screenGeometry to compute maximum size.
This commit is contained in:
parent
ad5e837b75
commit
87edd61278
@ -47,7 +47,7 @@ CalamaresWindow::CalamaresWindow( QWidget* parent )
|
|||||||
)
|
)
|
||||||
|
|
||||||
setMinimumSize( 1010, 520 );
|
setMinimumSize( 1010, 520 );
|
||||||
QSize availableSize = qApp->desktop()->screenGeometry( this ).size();
|
QSize availableSize = qApp->desktop()->availableGeometry( this ).size();
|
||||||
int w = qBound( 1010, CalamaresUtils::defaultFontHeight() * 60, availableSize.width() );
|
int w = qBound( 1010, CalamaresUtils::defaultFontHeight() * 60, availableSize.width() );
|
||||||
int h = qBound( 520, CalamaresUtils::defaultFontHeight() * 36, availableSize.height() );
|
int h = qBound( 520, CalamaresUtils::defaultFontHeight() * 36, availableSize.height() );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user