mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
nevermind we're adding the padding back in
This commit is contained in:
parent
8e9ba89354
commit
d613f3bd5f
1 changed files with 2 additions and 1 deletions
|
|
@ -260,7 +260,8 @@ void ZoneViewWidget::resizeEvent(QGraphicsSceneResizeEvent *event)
|
|||
**/
|
||||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue