Mercurial > dwindows
changeset 2234:b569023edb6f
Mac: Fix display of MLE after toggling word wrap on, without having to
resize the window.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 04 Jan 2021 12:33:20 +0000 |
parents | a1efdd4a24af |
children | bd642d04d7c6 |
files | mac/dw.m |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Sun Jan 03 23:56:22 2021 +0000 +++ b/mac/dw.m Mon Jan 04 12:33:20 2021 +0000 @@ -6515,7 +6515,13 @@ if(state) { + NSSize newsize = NSMakeSize([sv contentSize].width,[mle maxSize].height); + NSRect newrect = NSMakeRect(0, 0, [sv contentSize].width, 0); + [[mle textContainer] setWidthTracksTextView:YES]; + [mle setFrame:newrect]; + [[mle textContainer] setContainerSize:newsize]; + [mle setHorizontallyResizable:NO]; [sv setHasHorizontalScroller:NO]; } else