summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.cpp
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/serverdialog.cpp
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/serverdialog.cpp')
-rw-r--r--src/gui/serverdialog.cpp12
1 files changed, 11 insertions, 1 deletions
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);