diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-16 13:36:04 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-16 13:36:04 +0000 |
commit | cf4a8c96a0a3b1910a2094cc1e967e720111abb8 (patch) | |
tree | 8d0aa3a56faebd5d19fa00ef00f838e7bbda0fea /src/gui/inventory.cpp | |
parent | 8d801b2c43f7dfd0b279bb263480d38f5694ac06 (diff) | |
download | mana-cf4a8c96a0a3b1910a2094cc1e967e720111abb8.tar.gz mana-cf4a8c96a0a3b1910a2094cc1e967e720111abb8.tar.bz2 mana-cf4a8c96a0a3b1910a2094cc1e967e720111abb8.tar.xz mana-cf4a8c96a0a3b1910a2094cc1e967e720111abb8.zip |
Fixed cutting off bottom item row of inventory in some cases
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r-- | src/gui/inventory.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp index 59be88b8..36bea6cf 100644 --- a/src/gui/inventory.cpp +++ b/src/gui/inventory.cpp @@ -43,6 +43,7 @@ InventoryWindow::InventoryWindow(): items = new ItemContainer(); invenScroll = new ScrollArea(items); invenScroll->setPosition(8, 8); + invenScroll->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER); useButton->setEventId("use"); dropButton->setEventId("drop"); @@ -227,8 +228,6 @@ void InventoryWindow::updateWidgets() // Resize widgets useButton->setPosition(8, height - 24); dropButton->setPosition(48 + 16, height - 24); - items->setSize(width - 24 - 12 - 1, - (INVENTORY_SIZE * 24) / columns - 1); invenScroll->setSize(width - 16, height - 90); itemNameLabel->setPosition(8, |