diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-04 12:00:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-04 12:00:17 +0300 |
commit | 66d469fe20cff2749316afe3ba44ad74acfc1557 (patch) | |
tree | 15267204b4ab85be7b3e2ad64e7d7be6290be1bc /src/gui/spellpopup.cpp | |
parent | a78b3a34de86d181f845f352b3c4a58e6ff03872 (diff) | |
download | mv-66d469fe20cff2749316afe3ba44ad74acfc1557.tar.gz mv-66d469fe20cff2749316afe3ba44ad74acfc1557.tar.bz2 mv-66d469fe20cff2749316afe3ba44ad74acfc1557.tar.xz mv-66d469fe20cff2749316afe3ba44ad74acfc1557.zip |
Fix popups sizes and padding.
Diffstat (limited to 'src/gui/spellpopup.cpp')
-rw-r--r-- | src/gui/spellpopup.cpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/gui/spellpopup.cpp b/src/gui/spellpopup.cpp index 4d9666be4..f28cc024f 100644 --- a/src/gui/spellpopup.cpp +++ b/src/gui/spellpopup.cpp @@ -76,23 +76,13 @@ void SpellPopup::setItem(const TextCommand *const spell) if (mItemComment->getWidth() > minWidth) minWidth = mItemComment->getWidth(); - minWidth += 8; - setWidth(minWidth + 2 * getPadding()); - - mItemName->setPosition(getPadding(), getPadding()); - mItemComment->setPosition(getPadding(), - getPadding() + mItemName->getHeight()); + mItemName->setPosition(0, 0); + mItemComment->setPosition(0, mItemName->getHeight()); if (mItemComment->getCaption() != "") - { - setContentSize(minWidth, getPadding() - + 2 * getFont()->getHeight()); - } + setContentSize(minWidth, 2 * getFont()->getHeight()); else - { - setContentSize(minWidth, getPadding() - + getFont()->getHeight()); - } + setContentSize(minWidth, getFont()->getHeight()); } void SpellPopup::view(const int x, const int y) |