mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 23:42:15 -07:00
Finally fix the freaking OverlapLayout.
This commit is contained in:
parent
c10165dfbe
commit
80259a34e7
3 changed files with 21 additions and 15 deletions
|
|
@ -25,7 +25,7 @@ void DeckCardZoneDisplayWidget::resizeEvent(QResizeEvent *event)
|
|||
for (QObject *child : layout->children()) {
|
||||
QWidget *widget = qobject_cast<QWidget *>(child);
|
||||
if (widget) {
|
||||
widget->resize(event->size());
|
||||
widget->setMaximumWidth(width());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ void VisualDeckEditorWidget::updateDisplay()
|
|||
// Clear the layout first
|
||||
populateCards();
|
||||
zoneContainer = new QWidget(scrollArea);
|
||||
zoneContainer->setMaximumWidth(scrollArea->viewport()->width());
|
||||
zoneContainerLayout = new QVBoxLayout(zoneContainer);
|
||||
|
||||
DeckCardZoneDisplayWidget *mainBoardWidget =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue