summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-16 22:19:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-16 22:33:53 +0300
commit12a4de59d148ae3b912003dac715fd82ae6f0903 (patch)
tree8756e103077fe7deb3af84b47dcf70226503da4d /src
parent4520aa5631f5dfa9d941231a11c2ba782f456dd0 (diff)
downloadManaVerse-12a4de59d148ae3b912003dac715fd82ae6f0903.tar.gz
ManaVerse-12a4de59d148ae3b912003dac715fd82ae6f0903.tar.bz2
ManaVerse-12a4de59d148ae3b912003dac715fd82ae6f0903.tar.xz
ManaVerse-12a4de59d148ae3b912003dac715fd82ae6f0903.zip
Using also padding in skill item height calculation.
Diffstat (limited to 'src')
-rw-r--r--src/gui/skilldialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 26050585c..a7f60244d 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -102,7 +102,8 @@ class SkillListBox final : public ListBox
mTextPadding(mSkin ? mSkin->getOption("textPadding", 34) : 34),
mSpacing(mSkin ? mSkin->getOption("spacing", 0) : 0)
{
- mRowHeight = mainGraphics->getFont()->getHeight() * 2 + mSpacing;
+ mRowHeight = mainGraphics->getFont()->getHeight() * 2
+ + mSpacing + 2 * mPadding;
if (mRowHeight < 34)
mRowHeight = 34;
}