Mercurial > dwindows
comparison mac/dw.m @ 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 | 2c82060fda42 |
children | 3e9c5bff0a57 |
comparison
equal
deleted
inserted
replaced
2233:a1efdd4a24af | 2234:b569023edb6f |
---|---|
6513 DWMLE *mle = handle; | 6513 DWMLE *mle = handle; |
6514 NSScrollView *sv = [mle scrollview]; | 6514 NSScrollView *sv = [mle scrollview]; |
6515 | 6515 |
6516 if(state) | 6516 if(state) |
6517 { | 6517 { |
6518 NSSize newsize = NSMakeSize([sv contentSize].width,[mle maxSize].height); | |
6519 NSRect newrect = NSMakeRect(0, 0, [sv contentSize].width, 0); | |
6520 | |
6518 [[mle textContainer] setWidthTracksTextView:YES]; | 6521 [[mle textContainer] setWidthTracksTextView:YES]; |
6522 [mle setFrame:newrect]; | |
6523 [[mle textContainer] setContainerSize:newsize]; | |
6524 [mle setHorizontallyResizable:NO]; | |
6519 [sv setHasHorizontalScroller:NO]; | 6525 [sv setHasHorizontalScroller:NO]; |
6520 } | 6526 } |
6521 else | 6527 else |
6522 { | 6528 { |
6523 [[mle textContainer] setWidthTracksTextView:NO]; | 6529 [[mle textContainer] setWidthTracksTextView:NO]; |