summaryrefslogtreecommitdiff
path: root/src/gui/widgets/shoplistbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/shoplistbox.cpp')
-rw-r--r--src/gui/widgets/shoplistbox.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index 53e5f25e3..263a94d95 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -176,8 +176,13 @@ void ShopListBox::draw(gcn::Graphics *gcnGraphics)
void ShopListBox::adjustSize()
{
+ BLOCK_START("ShopListBox::adjustSize")
if (mListModel)
- setHeight(mRowHeight * mListModel->getNumberOfElements());
+ {
+ setHeight(mRowHeight * mListModel->getNumberOfElements()
+ + 2 * mPadding);
+ }
+ BLOCK_END("ShopListBox::adjustSize")
}
void ShopListBox::setPriceCheck(const bool check)