mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
fix calculation of card info popup size
This commit is contained in:
parent
4f30b5cd31
commit
14d731da98
1 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,9 @@ CardInfoWidget::CardInfoWidget(const QString &cardName, QWidget *parent, Qt::Win
|
|||
setFixedWidth(pixmapWidth + 150);
|
||||
|
||||
setCard(cardName);
|
||||
|
||||
// ensure our parent gets a valid size to position us correctly
|
||||
resize(width(), sizeHint().height());
|
||||
}
|
||||
|
||||
void CardInfoWidget::setCard(CardInfo *card)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue