Increase wxStaticText height in wxMSW to align its text with wxTextCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Dec 2010 16:29:22 +0000 (16:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Dec 2010 16:29:22 +0000 (16:29 +0000)
commite279a9e799c3808b221dc459a3a81bd2c19b36ea
tree631f736b80dd602414c1de978dc3b8b8962c07b7
parentf740587c9d406b5c7087853b85dbbb353362cb9a
Increase wxStaticText height in wxMSW to align its text with wxTextCtrl.

The base lines of the text in wxTextCtrl and wxStaticText which were
themselves vertically aligned didn't align, the text in the latter was one
pixel too low. This seems to be happening because we don't give enough
vertical space to the native static control by default and so, while the text
wasn't truncated, it was positioned differently than usual.

Work around this problem by allocating two extra pixels to wxStaticText
height. While the exact explanation of the problem remains mysterious, this
hack does result in correct appearance which seems to be sufficiently
important to apply it.

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