diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-11-08 08:30:41 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-11-08 08:30:41 +0000 |
commit | 3ea086acc9e1b4a44e101c75103eea8611821cfc (patch) | |
tree | 6a717efdef0874481e34c06d767cf0402f1de6fc /src | |
parent | 287b47c1d89e34e753efdb3c4db1e1dd1ed6eb46 (diff) | |
download | mana-client-3ea086acc9e1b4a44e101c75103eea8611821cfc.tar.gz mana-client-3ea086acc9e1b4a44e101c75103eea8611821cfc.tar.bz2 mana-client-3ea086acc9e1b4a44e101c75103eea8611821cfc.tar.xz mana-client-3ea086acc9e1b4a44e101c75103eea8611821cfc.zip |
Ensured "unequip" button is visible.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/equipmentwindow.cpp | 4 |
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++) |