From b930f7f858b0ad91206939ed1b6d5695bc10f9cc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Oct 2013 15:02:06 +0300 Subject: use different item padding in listbox and extendedlistbox depend on DPI. --- src/gui/widgets/extendedlistbox.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/gui/widgets/extendedlistbox.cpp') diff --git a/src/gui/widgets/extendedlistbox.cpp b/src/gui/widgets/extendedlistbox.cpp index 45497ae0a..68b4df766 100644 --- a/src/gui/widgets/extendedlistbox.cpp +++ b/src/gui/widgets/extendedlistbox.cpp @@ -33,22 +33,14 @@ ExtendedListBox::ExtendedListBox(const Widget2 *const widget, const std::string &skin, const int rowHeight) : ListBox(widget, listModel, skin), - mRowHeight(rowHeight), mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0), mSpacing(mSkin ? mSkin->getOption("spacing") : 0), - mItemPadding(mSkin ? mSkin->getOption("itemPadding") : 1), mHeight(0), mListItems(), mSelectedItems() { - if (!mRowHeight) - { - const gcn::Font *font = getFont(); - if (font) - mRowHeight = font->getHeight() + 2 * mItemPadding; - else - mRowHeight = 13; - } + if (rowHeight) + mRowHeight = rowHeight; } ExtendedListBox::~ExtendedListBox() -- cgit v1.2.3-70-g09d2