Author: mlytwyn
Date: Thu Feb 9 16:09:22 2017
New Revision: 40330
URL: http://svn.gna.org/viewcvs/gnustep?rev=40330&view=rev
Log:
Fix NSTextView's creation of NSTextContainer for XIB 5 loading
Modified:
libs/gui/branches/gnustep_testplant_branch/Source/NSTextView.m
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSTextView.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSTextView.m?rev=40330&r1=40329&r2=40330&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSTextView.m
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSTextView.m Thu Feb
9 16:09:22 2017
@@ -700,6 +700,11 @@
RELEASE(layoutManager);
textContainer = [[NSTextContainer alloc] initWithContainerSize: aSize];
+ [textContainer setWidthTracksTextView: YES];
+ [textContainer setHeightTracksTextView: NO];
+ [layoutManager setBackgroundLayoutEnabled: YES];
+ [layoutManager setShowsControlCharacters: NO];
+ [layoutManager setShowsInvisibleCharacters: NO];
[layoutManager addTextContainer: textContainer];
RELEASE(textContainer);
@@ -978,7 +983,7 @@
}
else
{
- NSTextContainer *container = [self buildUpTextNetwork: _frame.size];
+ NSTextContainer *container = [self buildUpTextNetwork: [self
maxSize]];
[container setTextView: self];
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs