New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wxStaticText not wrapping text on Mac (Windows and Linux work OK) #23341
Comments
Apparently we need to use It would be definitely nice if this worked, but for now you could probably use |
@vadz as far as I remember |
|
From the user perspective, it is pretty confusing that the behavior is different on Mac than on the other platforms. If that is to be left as is, then it would be a good idea to mention this in the documentation. |
@lszl84 since we are usually using native controls, these kind of things may always happen. And I thought we had discussed and even documented this somewhen in the last 25 years, but I forgot when and where. And the fact that |
So if Mac could implement the same behaviour as the other ports, it would be best. BTW, I have no idea how could we have an automatic test for something like this. Making background white and checking that we have some non-white pixels below the first line of text? |
ok, so I'll change the linebreak mode from Clip to WordWrap and let's see what happens ... |
opened #23345 for this |
@lszl84 Could you please test the PR above and check if it fixes the problem without introducing any new ones? |
@vadz looks good to me |
If we don't get any complaints about the change in behaviour under macOS, we probably should backport the commit above to 3.2 too. |
Instead of just clipping the label, wrap it. This is more consistent with wxMSW and wxGTK and also generally more useful. See wxWidgets#23341, wxWidgets#23345. (cherry picked from commit 9c8dfe5)
Description
The code below does not wrap the lines on Mac OS. Works correctly on Windows and Linux (see screenshots).
Platform and version information
The text was updated successfully, but these errors were encountered: