Changes to correct bug#34919. NSTextView should now correctly show the padding set in the lineFragmentPadding attribute of NSTextContainer.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34222 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2011-11-28 02:37:58 +00:00
parent a84a2ca96f
commit e9aaaf4b61
4 changed files with 21 additions and 3 deletions

View file

@ -697,6 +697,7 @@ If a text view is added to an empty text network, it keeps its attributes.
RELEASE(layoutManager);
textContainer = [[NSTextContainer alloc] initWithContainerSize: aSize];
[textContainer setLineFragmentPadding: 5.0]; // Tests on Cocoa indicate the default value is 5.
[layoutManager addTextContainer: textContainer];
RELEASE(textContainer);