use the correct calculation and remove padding

This commit is contained in:
RickyRister 2024-12-13 02:10:07 -08:00
parent bd605e4683
commit 46f43df24c

View file

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