# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1609763600 0 # Node ID b569023edb6f694e48bbaf2320db347d766a296f # Parent a1efdd4a24af880f75fada7c86044faad28e6c6e Mac: Fix display of MLE after toggling word wrap on, without having to resize the window. diff -r a1efdd4a24af -r b569023edb6f mac/dw.m --- 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