diff options
author | Dennis Friis <peavey@placid.dk> | 2008-04-27 22:45:03 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-04-27 22:45:03 +0000 |
commit | 8dabd7f5160346c8670ae95f7e713b6156e5fc48 (patch) | |
tree | 3b4d1ec86380a558e4e79d0505cfbcea41ba40bd /src/gui/itemcontainer.cpp | |
parent | 044151cee3dc6a65ba21f93db331844d6c8f3974 (diff) | |
download | mana-client-8dabd7f5160346c8670ae95f7e713b6156e5fc48.tar.gz mana-client-8dabd7f5160346c8670ae95f7e713b6156e5fc48.tar.bz2 mana-client-8dabd7f5160346c8670ae95f7e713b6156e5fc48.tar.xz mana-client-8dabd7f5160346c8670ae95f7e713b6156e5fc48.zip |
Fix buildup of whitespace by using correct gridHeight and adding just 4px space to bottom.
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r-- | src/gui/itemcontainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index a6348d01..eb9d66ec 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -136,7 +136,7 @@ ItemContainer::setWidth(int width) gcn::Widget::setWidth(width); int gridWidth = 36; //item icon width + 4 - int gridHeight = 46; //item icon height + 14 + int gridHeight = 42; //item icon height + 10 int columns = getWidth() / gridWidth; if (columns < 1) @@ -144,7 +144,7 @@ ItemContainer::setWidth(int width) columns = 1; } - setHeight(((mMaxItems / columns) + + setHeight(4 + ((mMaxItems / columns) + (mMaxItems % columns > 0 ? 1 : 0)) * gridHeight); } |