From 12a4de59d148ae3b912003dac715fd82ae6f0903 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Dec 2012 22:19:31 +0300 Subject: Using also padding in skill item height calculation. --- src/gui/skilldialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2