summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 58c13910..d7cd7ccd 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -91,16 +91,16 @@ InventoryWindow::InventoryWindow(int invSize):
setMinHeight(130);
setMinWidth(mWeightLabel->getWidth() + mSlotsLabel->getWidth() + 310);
- place(0, 0, mInvenScroll, 7, 4);
- place(0, 4, mWeightLabel).setPadding(3);
- place(1, 4, mWeightBar, 2);
- place(3, 4, mSlotsLabel).setPadding(3);
- place(4, 4, mSlotsBar, 2);
+ place(0, 0, mWeightLabel).setPadding(3);
+ place(1, 0, mWeightBar, 2);
+ place(3, 0, mSlotsLabel).setPadding(3);
+ place(4, 0, mSlotsBar, 2);
+ place(0, 1, mInvenScroll, 7, 4);
place(5, 5, mDropButton);
place(6, 5, mUseButton);
Layout &layout = getLayout();
- layout.setRowHeight(0, Layout::AUTO_SET);
+ layout.setRowHeight(0, mDropButton->getHeight());
loadWindowState();
setLocationRelativeTo(getParent());