diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/gui/inventorywindow.cpp | 8 |
2 files changed, 7 insertions, 6 deletions
@@ -1,3 +1,8 @@ +2008-04-27 Dennis Friis <peavey@placid.dk> + + * src/gui/inventorywindow.cpp: Fix ItemContainer not being resized + properly when resizing inventory window. + 2008-04-26 Dennis Friis <peavey@placid.dk> * src/inventory.cpp: Avoid stacking equipment other than arrows. Based on diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 7062720d..91b1ce7c 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -181,12 +181,6 @@ void InventoryWindow::widgetResized(const gcn::Event &event) const gcn::Rectangle &area = getChildrenArea(); const int width = area.width; const int height = area.height; - int columns = width / 24; - - if (columns < 1) - { - columns = 1; - } // Adjust widgets mUseButton->setPosition(8, height - 8 - mUseButton->getHeight()); @@ -209,6 +203,8 @@ void InventoryWindow::widgetResized(const gcn::Event &event) mInvenScroll->setSize(width - 16, mItemDescriptionLabel->getY() - mWeightLabel->getHeight() - 18); + mItems->setWidth(width - 16); + mWeightLabel->setWidth(width - 16); } |