summaryrefslogtreecommitdiff
path: root/src/gui/widgets/extendedlistbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/extendedlistbox.cpp')
-rw-r--r--src/gui/widgets/extendedlistbox.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/extendedlistbox.cpp b/src/gui/widgets/extendedlistbox.cpp
index 8c850775a..34f4f1a45 100644
--- a/src/gui/widgets/extendedlistbox.cpp
+++ b/src/gui/widgets/extendedlistbox.cpp
@@ -1,6 +1,6 @@
/*
* The ManaPlus Client
- * Copyright (C) 2012 The ManaPlus Developers
+ * Copyright (C) 2012-2013 The ManaPlus Developers
*
* This file is part of The ManaPlus Client.
*
@@ -42,13 +42,14 @@ ExtendedListBox::ExtendedListBox(const Widget2 *const widget,
ListBox(widget, listModel),
mRowHeight(rowHeight),
mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0),
- mSpacing(mSkin ? mSkin->getOption("spacing") : 0)
+ mSpacing(mSkin ? mSkin->getOption("spacing") : 0),
+ mItemPadding(mSkin ? mSkin->getOption("itemPadding") : 1)
{
if (!mRowHeight)
{
const gcn::Font *font = getFont();
if (font)
- mRowHeight = font->getHeight() + 2 * mPadding;
+ mRowHeight = font->getHeight() + 2 * mItemPadding;
else
mRowHeight = 13;
}