Wrap wxStaticText contents under Mac too
Instead of just clipping the label, wrap it. This is more consistent with wxMSW and wxGTK and also generally more useful. See #23341, #23345. (cherry picked from commit 9c8dfe5b2a8a6d80c25bee37e6a2d9d03656c3e7)
This commit is contained in:
parent
b2d8c472db
commit
bf83403ea7
@ -399,6 +399,7 @@ wxOSX:
|
||||
- Fix wxLocale::GetCurrent() when the current locale is "C".
|
||||
- Fix wxLocale::Init(wxLANGUAGE_DEFAULT) with "mixed" locales (#23114).
|
||||
- Fix setting Chinese locales (#23209).
|
||||
- Wrap wxStaticText contents (#23341).
|
||||
|
||||
wxQt:
|
||||
|
||||
|
@ -157,7 +157,7 @@ wxWidgetImplType* wxWidgetImpl::CreateStaticText( wxWindowMac* wxpeer,
|
||||
[v setBezeled:NO];
|
||||
[v setBordered:NO];
|
||||
|
||||
NSLineBreakMode linebreak = NSLineBreakByClipping;
|
||||
NSLineBreakMode linebreak = NSLineBreakByWordWrapping;
|
||||
if ( style & wxST_ELLIPSIZE_MASK )
|
||||
{
|
||||
if ( style & wxST_ELLIPSIZE_MIDDLE )
|
||||
|
Loading…
Reference in New Issue
Block a user