diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-10-29 00:25:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-11-08 11:21:30 +0000 |
| commit | 885de94a17a39314fd2c1fd97a8df953eb3d4031 (patch) | |
| tree | cdf09f8572e059bdca26121339e857abce90eeeb /src/wx/kdm_timing_panel.cc | |
| parent | 5ece03888d29137a6bd78c3781bc04b4f2fc0d89 (diff) | |
Tweak layout of KDM from/until line under OS X (#926).
Diffstat (limited to 'src/wx/kdm_timing_panel.cc')
| -rw-r--r-- | src/wx/kdm_timing_panel.cc | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/wx/kdm_timing_panel.cc b/src/wx/kdm_timing_panel.cc index 613b62cbf..53f674e2e 100644 --- a/src/wx/kdm_timing_panel.cc +++ b/src/wx/kdm_timing_panel.cc @@ -37,18 +37,27 @@ KDMTimingPanel::KDMTimingPanel (wxWindow* parent) wxDateTime from; from.SetToCurrent (); _from_date = new wxDatePickerCtrl (this, wxID_ANY, from); - table->Add (_from_date); + table->Add (_from_date, 0, wxALIGN_CENTER_VERTICAL); _from_time = new TimePicker (this, from); - table->Add (_from_time); +#ifdef DCPOMATIC_OSX + /* Hack to tweak alignment, which I can't get right by "proper" means for some reason */ + table->Add (_from_time, 0, wxALIGN_CENTER_VERTICAL | wxTOP, 4); +#else + table->Add (_from_time, 0, wxALIGN_CENTER_VERTICAL); +#endif add_label_to_sizer (table, this, _("until"), true); wxDateTime to = from; /* 1 week from now */ to.Add (wxDateSpan (0, 0, 1, 0)); _until_date = new wxDatePickerCtrl (this, wxID_ANY, to); - table->Add (_until_date); + table->Add (_until_date, 0, wxALIGN_CENTER_VERTICAL); _until_time = new TimePicker (this, to); - table->Add (_until_time); +#ifdef DCPOMATIC_OSX + table->Add (_until_time, 0, wxALIGN_CENTER_VERTICAL | wxTOP, 4); +#else + table->Add (_until_time, 0, wxALIGN_CENTER_VERTICAL); +#endif overall_sizer->Add (table); |
