summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-13 12:08:56 -0700
committerJared Adams <jaxad0127@gmail.com>2010-03-15 13:25:39 -0600
commit584fdb3fd5a157d0768d9f4782a035a239bd010a (patch)
treee26542282bf29e251b5112b0cb9a81516ac4725c /src/gui
parent7a1ccdb028c13164f7ce27407cd9d61ec8e824ff (diff)
downloadmana-client-584fdb3fd5a157d0768d9f4782a035a239bd010a.tar.gz
mana-client-584fdb3fd5a157d0768d9f4782a035a239bd010a.tar.bz2
mana-client-584fdb3fd5a157d0768d9f4782a035a239bd010a.tar.xz
mana-client-584fdb3fd5a157d0768d9f4782a035a239bd010a.zip
Fix button overlap issues in login dialogs
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/login.cpp2
-rw-r--r--src/gui/serverdialog.cpp12
2 files changed, 12 insertions, 2 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp
index 9eb3f2c0..78914475 100644
--- a/src/gui/login.cpp
+++ b/src/gui/login.cpp
@@ -76,7 +76,7 @@ LoginDialog::LoginDialog(LoginData *loginData):
place(0, 6, mRegisterButton).setHAlign(LayoutCell::LEFT);
place(2, 6, mServerButton);
place(3, 6, mLoginButton);
- reflowLayout(250, 0);
+ reflowLayout();
addKeyListener(this);
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index dd34a24e..eb6e9b4b 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -189,7 +189,17 @@ ServerDialog::ServerDialog(ServerInfo *serverInfo, const std::string &dir):
// Make sure the list has enough height
getLayout().setRowHeight(3, 80);
- reflowLayout(300, 0);
+ // Do this manually instead of calling reflowLayout so we can enforce a
+ // minimum width.
+ int width = 0, height = 0;
+ getLayout().reflow(width, height);
+ if (width < 300)
+ {
+ width = 300;
+ getLayout().reflow(width, height);
+ }
+
+ setContentSize(width, height);
addKeyListener(this);