On Mon, Feb 4, 2013 at 8:03 AM, Alexander Holler <
hol...@ahsoftware.de> wrote:
> Hmm, sorry, I can't talk about svn change numbers as the official repository
> (and what I'm using) is now git (which doesn't show the svn numbers).
Actually, the GitHub repository is just a *mirror*, and it's only
there for convenience. The Subversion repository is still the official
source for wxWidgets development.
Also, the GitHub mirror contains SVN revision numbers, check the
git-svn-id lines:
$ git log --grep @66452
commit e279a9e799c3808b221dc459a3a81bd2c19b36ea
Author: Vadim Zeitlin <
va...@wxwidgets.org>
Date: Sun Dec 26 16:29:22 2010 +0000
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
> Whatever the alignment problem is, the solution to make every wxStatixText
> (and thus almost every widget) 2 pixels higher isn't very good (imho) and
> breaks backward compatibility.
The 2.9.2 release is off of a development branch, and is not intended
to be backwards compatible with the 2.8 branch or even 2.9 releases
before it. It's perfectly acceptable to break backwards compatibility
in these releases in situations like this. If you don't like that, you
can always switch back to the latest stable release (2.8.12).
> I don't want to say that the new visual appearance isn't better, I'm only
> talking about backwards compatibility which currently seems to be broken for
> many designs.
In a majority of wxWidgets applications, sizers have been used with
the intention of layouts being flexible to minor changes and
especially for changes in translations depending on application
locale. Most applications won't need to change anything in their
applications regardless of this change. You are in the minority here
that just happened to incorrectly assume that sizer layout was a very
static asset rather than relying on a custom rendered control with
absolute positioning (which you could still switch to).
> Anyway, as already said, I will likely have a look about how to circumvent
> the font handling changes and will post a solution, if I've found one. In
> regard to the 2 additional pixels, I might just patch the used wxwidgets
> source to be backwards compatible.
This is perfectly acceptable too, but I wouldn't count on that patch
ever making it into wxWidgets itself, so you might be maintaining that
custom patch for a long time, and it will restrict your options for
application deployment.
Regards,
Bryan Petty