From 1c9de0aa5375af4f37308dea014aebacbc3daba5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Feb 2012 16:46:54 +0300 Subject: Fix login dialog size. --- src/gui/logindialog.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/gui/logindialog.cpp') diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index b1c80b102..e0033793b 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -88,6 +88,7 @@ LoginDialog::LoginDialog(LoginData *data, std::string serverName, mUpdateHost(updateHost), mServerName(serverName) { + gcn::Label *serverLabel1 = new Label(_("Server:")); gcn::Label *serverLabel2 = new Label(serverName); serverLabel2->adjustSize(); @@ -131,12 +132,11 @@ LoginDialog::LoginDialog(LoginData *data, std::string serverName, mPassField->addActionListener(this); place(0, 0, serverLabel1); - place(1, 0, serverLabel2, 8).setPadding(1); - + place(1, 0, serverLabel2, 8); place(0, 1, userLabel); place(0, 2, passLabel); - place(1, 1, mUserField, 8).setPadding(1); - place(1, 2, mPassField, 8).setPadding(1); + place(1, 1, mUserField, 8); + place(1, 2, mPassField, 8); place(0, 6, mUpdateTypeLabel, 1); place(1, 6, mUpdateTypeDropDown, 8); place(0, 7, mCustomUpdateHost, 9); @@ -146,9 +146,8 @@ LoginDialog::LoginDialog(LoginData *data, std::string serverName, place(2, 10, mServerButton); place(3, 10, mLoginButton); - reflowLayout(); - addKeyListener(this); + setContentSize(300, 200); center(); setVisible(true); -- cgit v1.2.3-70-g09d2