summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-11-08 08:30:41 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-11-08 08:30:41 +0000
commit3ea086acc9e1b4a44e101c75103eea8611821cfc (patch)
tree6a717efdef0874481e34c06d767cf0402f1de6fc /src/gui/equipmentwindow.cpp
parent287b47c1d89e34e753efdb3c4db1e1dd1ed6eb46 (diff)
downloadmana-3ea086acc9e1b4a44e101c75103eea8611821cfc.tar.gz
mana-3ea086acc9e1b4a44e101c75103eea8611821cfc.tar.bz2
mana-3ea086acc9e1b4a44e101c75103eea8611821cfc.tar.xz
mana-3ea086acc9e1b4a44e101c75103eea8611821cfc.zip
Ensured "unequip" button is visible.
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-rw-r--r--src/gui/equipmentwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index c86a27fc..20cc86e7 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -64,7 +64,9 @@ EquipmentWindow::EquipmentWindow(Equipment *equipment):
loadWindowState("Equipment");
mUnequip = new Button(_("Unequip"), "unequip", this);
- mUnequip->setPosition(150,235);
+ gcn::Rectangle const &area = getChildrenArea();
+ mUnequip->setPosition(area.width - mUnequip->getWidth() - 5,
+ area.height - mUnequip->getHeight() - 5);
add(mUnequip);
for (int i = 0; i < EQUIPMENT_SIZE; i++)