diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/inventorywindow.cpp | 8 |
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); } |