fix calculation of card info popup size

This commit is contained in:
Fabio Bas 2016-04-11 17:07:07 +02:00
parent 4f30b5cd31
commit 14d731da98

View file

@ -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)