Restore correct wxSearchCtrl size in wxMSW after wxTextCtrl changes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Oct 2011 11:28:40 +0000 (11:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Oct 2011 11:28:40 +0000 (11:28 +0000)
commita166dbbab57ac04eedebef727ab5a66dfacc41de
tree01871db3c0c4025d22c36eb0a89ae0eb76572863
parent97d5c7a3d03dea649d933f6a3871217a5e8e5b53
Restore correct wxSearchCtrl size in wxMSW after wxTextCtrl changes.

The code in generic wxSearchCtrl implementation was broken by the changes of
r69066 which deccreased the best height of border-less text controls.

Ideally we should probably change wxSearchCtrl::LayoutControls() to not be
sensitive at all to the exact value returned from wxTextCtrl::GetBestSize()
and just always centre everything vertically but this doesn't look simple to
do with the current code so just override wxSearchTextCtrl::DoGetBestSize() to
return the same size as wxTextCtrl used to return before to fix this for now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/srchctlg.cpp