mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42: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()
|
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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue