Fix best size computation for wxTextCtrl without borders in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Sep 2011 21:55:47 +0000 (21:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Sep 2011 21:55:47 +0000 (21:55 +0000)
commitdf0419d21de163005b156d0dcd6e18d19a6efed6
treebe7e967efae80e76d31abff5fd461f251076cf92
parent7011055c55538a9f38bc265bbafab4afa3ae2981
Fix best size computation for wxTextCtrl without borders in wxMSW.

wxTextCtrl with wxBORDER_NONE (and possibly wxTE_READONLY) style is often used
instead of a wxStaticText to allow copying the text, so make the size of such
control the same as size of the label. This ensures that it aligns correctly
with the label vertically while before the baselines were not aligned because
a border-less text control was rendered by MSW as a label but had a too big
size.

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