X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40a33c46e31226cab8dff02b0a078214f60666ac..07a84e7bbb3ed346fff59aa3570a1f687a3c4d7b:/src/generic/datectlg.cpp diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index 3c90fb1cc5..ab5d7448d7 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: generic/datectlg.cpp +// Name: src/generic/datectlg.cpp // Purpose: generic wxDatePickerCtrlGeneric implementation // Author: Andreas Pflug // Modified by: @@ -569,7 +569,7 @@ void wxDatePickerCtrlGeneric::DoMoveWindow(int x, int y, int w, int h) wxControl::DoMoveWindow(x, y, w, h); if (m_dropped) - DropDown(true); + DropDown(false); } wxSize wxDatePickerCtrlGeneric::DoGetBestSize() const @@ -580,7 +580,7 @@ wxSize wxDatePickerCtrlGeneric::DoGetBestSize() const int eh=m_txt->GetBestSize().y; return wxSize(DEFAULT_ITEM_WIDTH, bh > eh ? bh : eh); } - return wxSize(DEFAULT_ITEM_WIDTH,DEFAULT_ITEM_HEIGHT); + return wxControl::DoGetBestSize(); } @@ -957,4 +957,3 @@ void wxDatePickerCtrlGeneric::OnCalKey(wxKeyEvent & ev) #endif // wxUSE_DATEPICKCTRL_GENERIC #endif // wxUSE_DATEPICKCTRL -