X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd362275b853cc0308bbde6a60bb2525d659f709..880d76dfb12d4e8466df30d641bb25c6f71bd398:/include/wx/choice.h diff --git a/include/wx/choice.h b/include/wx/choice.h index 46f27b9d8a..369dbb517a 100644 --- a/include/wx/choice.h +++ b/include/wx/choice.h @@ -58,6 +58,13 @@ public: // override wxItemContainer::IsSorted virtual bool IsSorted() const { return HasFlag(wxCB_SORT); } +protected: + // The generic implementation doesn't determine the height correctly and + // doesn't account for the width of the arrow but does take into account + // the string widths, so the derived classes should override it and set the + // height and add the arrow width to the size returned by this version. + virtual wxSize DoGetBestSize() const; + private: wxDECLARE_NO_COPY_CLASS(wxChoiceBase); };