mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
use the correct calculation and remove padding
This commit is contained in:
parent
bd605e4683
commit
46f43df24c
1 changed files with 1 additions and 2 deletions
|
|
@ -260,8 +260,7 @@ void ZoneViewWidget::resizeEvent(QGraphicsSceneResizeEvent *event)
|
|||
**/
|
||||
static qreal calcMaxInitialHeight()
|
||||
{
|
||||
const qreal cardsHeight = (SettingsCache::instance().getCardViewInitialRowsMax() + 1) * CARD_HEIGHT * 0.33;
|
||||
return cardsHeight + 2; // +2 padding to make the cutoff look nicer
|
||||
return (SettingsCache::instance().getCardViewInitialRowsMax() + 1) * CARD_HEIGHT / 3;
|
||||
}
|
||||
|
||||
void ZoneViewWidget::resizeToZoneContents()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue