nevermind we're adding the padding back in

This commit is contained in:
RickyRister 2024-12-13 18:16:05 -08:00
parent 8e9ba89354
commit d613f3bd5f

View file

@ -260,7 +260,8 @@ void ZoneViewWidget::resizeEvent(QGraphicsSceneResizeEvent *event)
**/ **/
static qreal calcMaxInitialHeight() static qreal calcMaxInitialHeight()
{ {
return (SettingsCache::instance().getCardViewInitialRowsMax() + 1) * CARD_HEIGHT / 3; const qreal cardsHeight = (SettingsCache::instance().getCardViewInitialRowsMax() + 1) * (CARD_HEIGHT / 3);
return cardsHeight + 5; // +5 padding to make the cutoff look nicer
} }
void ZoneViewWidget::resizeToZoneContents() void ZoneViewWidget::resizeToZoneContents()