diff --git a/docs/changes.txt b/docs/changes.txt index 08abf4c055..366c1738ec 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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: diff --git a/src/osx/cocoa/stattext.mm b/src/osx/cocoa/stattext.mm index 8de67df95c..ff9c8bd64c 100644 --- a/src/osx/cocoa/stattext.mm +++ b/src/osx/cocoa/stattext.mm @@ -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 )