diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-16 22:19:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-16 22:33:53 +0300 |
commit | 12a4de59d148ae3b912003dac715fd82ae6f0903 (patch) | |
tree | 8756e103077fe7deb3af84b47dcf70226503da4d /src | |
parent | 4520aa5631f5dfa9d941231a11c2ba782f456dd0 (diff) | |
download | manaplus-12a4de59d148ae3b912003dac715fd82ae6f0903.tar.gz manaplus-12a4de59d148ae3b912003dac715fd82ae6f0903.tar.bz2 manaplus-12a4de59d148ae3b912003dac715fd82ae6f0903.tar.xz manaplus-12a4de59d148ae3b912003dac715fd82ae6f0903.zip |
Using also padding in skill item height calculation.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/skilldialog.cpp | 3 |
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; } |