Cache best size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -567,7 +567,9 @@ wxSize wxChoice::DoGetBestSize() const
|
|||||||
// the combobox should be slightly larger than the widest string
|
// the combobox should be slightly larger than the widest string
|
||||||
wChoice += 5*GetCharWidth();
|
wChoice += 5*GetCharWidth();
|
||||||
|
|
||||||
return wxSize(wChoice, EDIT_HEIGHT_FROM_CHAR_HEIGHT(GetCharHeight()));
|
wxSize best(wChoice, EDIT_HEIGHT_FROM_CHAR_HEIGHT(GetCharHeight()));
|
||||||
|
CacheBestSize(best);
|
||||||
|
return best;
|
||||||
}
|
}
|
||||||
|
|
||||||
WXLRESULT wxChoice::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
WXLRESULT wxChoice::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
||||||
|
Reference in New Issue
Block a user