From 3ea086acc9e1b4a44e101c75103eea8611821cfc Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Thu, 8 Nov 2007 08:30:41 +0000 Subject: Ensured "unequip" button is visible. --- src/gui/equipmentwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/equipmentwindow.cpp') 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++) -- cgit v1.2.3-70-g09d2