diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-21 23:58:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-21 23:58:52 +0100 |
| commit | bd2d1defaf1ad1a115bbfa255c67b7fe0b00c7de (patch) | |
| tree | bdd0ec0f8421aa5fcc372f277151ad9a18602433 /src | |
| parent | af0a8c8a2d46cf0999d201cfb5be0b8c32dffc49 (diff) | |
Fix alignment of some labels.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/credentials_download_certificate_panel.cc | 4 | ||||
| -rw-r--r-- | src/wx/download_certificate_panel.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/credentials_download_certificate_panel.cc b/src/wx/credentials_download_certificate_panel.cc index fb4908269..9032b1f81 100644 --- a/src/wx/credentials_download_certificate_panel.cc +++ b/src/wx/credentials_download_certificate_panel.cc @@ -44,11 +44,11 @@ CredentialsDownloadCertificatePanel::CredentialsDownloadCertificatePanel ( , _set_password (set_password) , _unset_password (unset_password) { - add_label_to_sizer (_table, this, _("User name"), true); + add_label_to_sizer (_table, this, _("User name"), true, 0, wxALIGN_CENTER_VERTICAL); _username = new wxTextCtrl (this, wxID_ANY, std_to_wx(_get_username().get_value_or("")), wxDefaultPosition, wxSize(300, -1)); _table->Add (_username, 1, wxEXPAND); - add_label_to_sizer (_table, this, _("Password"), true); + add_label_to_sizer (_table, this, _("Password"), true, 0, wxALIGN_CENTER_VERTICAL); _password = new PasswordEntry (this); _password->set (_get_password().get_value_or("")); _table->Add (_password->get_panel(), 1, wxEXPAND); diff --git a/src/wx/download_certificate_panel.cc b/src/wx/download_certificate_panel.cc index bbaddeef2..ae62f1a0a 100644 --- a/src/wx/download_certificate_panel.cc +++ b/src/wx/download_certificate_panel.cc @@ -44,7 +44,7 @@ DownloadCertificatePanel::DownloadCertificatePanel (DownloadCertificateDialog* d _overall_sizer->Add (_table, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); - add_label_to_sizer (_table, this, _("Serial number"), true); + add_label_to_sizer (_table, this, _("Serial number"), true, 0, wxALIGN_CENTER_VERTICAL); _serial = new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, wxSize (300, -1)); _table->Add (_serial, 1, wxEXPAND); |
