X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/268203fb5b9c72251b473d7a51bfd4508b5729f6..ccec90930cfc38bd4347a97f46481242d9fd23cd:/src/gtk/bmpcbox.cpp diff --git a/src/gtk/bmpcbox.cpp b/src/gtk/bmpcbox.cpp index 4b42a746ab..7743cd1465 100644 --- a/src/gtk/bmpcbox.cpp +++ b/src/gtk/bmpcbox.cpp @@ -164,6 +164,19 @@ GdkWindow *wxBitmapComboBox::GTKGetWindow(wxArrayGdkWindows& windows) const return wxChoice::GTKGetWindow(windows); } +wxSize wxBitmapComboBox::DoGetBestSize() const +{ + wxSize best = wxComboBox::DoGetBestSize(); + + int delta = GetBitmapSize().y - GetCharHeight(); + if ( delta > 0 ) + { + best.y += delta; + CacheBestSize(best); + } + return best; +} + // ---------------------------------------------------------------------------- // Item manipulation // ----------------------------------------------------------------------------