Screensize: on small screens, crush the sidebar.

This still isn't enough to show the whole timezone or keyboard widget,
but does make more of it visible.
This commit is contained in:
Adriaan de Groot 2017-06-21 04:42:02 -04:00 committed by Philip
parent ea7a45baa6
commit d0c7577fb4

View File

@ -77,7 +77,7 @@ CalamaresWindow::CalamaresWindow( QWidget* parent )
QBoxLayout* sideLayout = new QVBoxLayout;
sideBox->setLayout( sideLayout );
sideBox->setFixedWidth( qMax( 190, CalamaresUtils::defaultFontHeight() * 12 ) );
sideBox->setFixedWidth( qBound( 100, CalamaresUtils::defaultFontHeight() * 12, w < preferred_min_w ? 100 : 190 ) );
sideBox->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
QHBoxLayout* logoLayout = new QHBoxLayout;