Merge pull request #1930 from ctrlaltca/fix_1929
Fix calculation of card info popup size
This commit is contained in:
commit
03af9afe17
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…
Reference in a new issue