fix annoying horizontal overscroll on MacOS

This commit is contained in:
Matthew Hodgson 2017-04-30 01:38:36 +01:00
parent 57332553c4
commit 57070f12be

View File

@ -41,7 +41,7 @@ RoomInfoListItem::RoomInfoListItem(RoomInfo info, QWidget *parent)
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
setAutoFillBackground(true);
setMinimumSize(parent->width(), max_height_);
setMaximumSize(parent->width(), max_height_);
topLayout_ = new QHBoxLayout(this);
topLayout_->setSpacing(0);