From caf39bc7d36c79b454d2d7648ba0a567b18ba280 Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Mon, 30 May 2011 23:33:21 +0200 Subject: [PATCH] fixed CardInfoWidget weirdness --- cockatrice/src/tab_game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/tab_game.cpp b/cockatrice/src/tab_game.cpp index d4aa7b45..e8018c98 100644 --- a/cockatrice/src/tab_game.cpp +++ b/cockatrice/src/tab_game.cpp @@ -786,11 +786,11 @@ void TabGame::showCardInfoPopup(const QPoint &pos, const QString &cardName) infoPopup->setAttribute(Qt::WA_TransparentForMouseEvents); infoPopup->setCard(cardName); QRect screenRect = qApp->desktop()->screenGeometry(this); - infoPopup->show(); infoPopup->move( qMax(screenRect.left(), qMin(pos.x() - infoPopup->width() / 2, screenRect.left() + screenRect.width() - infoPopup->width())), qMax(screenRect.top(), qMin(pos.y() - infoPopup->height() / 2, screenRect.top() + screenRect.height() - infoPopup->height())) ); + infoPopup->show(); } void TabGame::deleteCardInfoPopup()