Finally fix the freaking OverlapLayout.

This commit is contained in:
Lukas Brübach 2025-02-11 20:39:04 +01:00
parent c10165dfbe
commit 80259a34e7
3 changed files with 21 additions and 15 deletions

View file

@ -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());
}
}
}

View file

@ -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 =