summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorDennis Friis <peavey@placid.dk>2008-04-27 17:14:35 +0000
committerDennis Friis <peavey@placid.dk>2008-04-27 17:14:35 +0000
commitab08248a2da802de38bb017b994c22e8f7999424 (patch)
tree5251b171504d75859f03ebbf336bdb310d780b93 /src/gui/inventorywindow.cpp
parent095b6e3d86fe30558abfeff084171e405a1f22d9 (diff)
downloadmana-client-ab08248a2da802de38bb017b994c22e8f7999424.tar.gz
mana-client-ab08248a2da802de38bb017b994c22e8f7999424.tar.bz2
mana-client-ab08248a2da802de38bb017b994c22e8f7999424.tar.xz
mana-client-ab08248a2da802de38bb017b994c22e8f7999424.zip
Fix ItemContainer not being resized properly when resizing inventory window.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp8
1 files changed, 2 insertions, 6 deletions
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);
}