diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/extendedlistbox.cpp | 5 | ||||
-rw-r--r-- | src/gui/widgets/extendedlistbox.h | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/extendedlistbox.cpp b/src/gui/widgets/extendedlistbox.cpp index 5a81084c3..34f4f1a45 100644 --- a/src/gui/widgets/extendedlistbox.cpp +++ b/src/gui/widgets/extendedlistbox.cpp @@ -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; } diff --git a/src/gui/widgets/extendedlistbox.h b/src/gui/widgets/extendedlistbox.h index 9d86b1780..9da77abe7 100644 --- a/src/gui/widgets/extendedlistbox.h +++ b/src/gui/widgets/extendedlistbox.h @@ -52,6 +52,7 @@ class ExtendedListBox final : public ListBox unsigned int mRowHeight; int mImagePadding; int mSpacing; + int mItemPadding; }; #endif |