summaryrefslogtreecommitdiff
path: root/src/gui/char_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r--src/gui/char_server.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp
index 38fb0595..ea28d849 100644
--- a/src/gui/char_server.cpp
+++ b/src/gui/char_server.cpp
@@ -42,9 +42,17 @@ ServerSelectDialog::ServerSelectDialog(gcn::Container *parent):
cancelButton = new Button("Cancel");
setSize(200, 100);
- scrollArea->setDimension(gcn::Rectangle(4, 4, 192, 55));
- okButton->setPosition(120, 70);
- cancelButton->setPosition(146, 70);
+
+ cancelButton->setPosition(
+ 200 - cancelButton->getWidth() - 5,
+ 100 - cancelButton->getHeight() - 5);
+ okButton->setPosition(
+ cancelButton->getX() - okButton->getWidth() - 5,
+ 100 - okButton->getHeight() - 5);
+ scrollArea->setDimension(gcn::Rectangle(
+ 5, 5, 200 - 2 * 5,
+ 100 - 3 * 5 - cancelButton->getHeight() -
+ scrollArea->getBorderSize()));
serverList->setEventId("ok");
okButton->setEventId("ok");