mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:10:36 +00:00
Reinstate Fred's change with the additional correction to the string
drawing code he proposed on the mailing list. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34241 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f218a41010
commit
6365fa5127
4 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2011-12-02 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSTextView.m (-buildUpTextNetwork:):
|
||||
* Source/NSTextContainer.m (-initWithContainerSize):
|
||||
* Source/NSStringDrawing.m (init_string_drawing):
|
||||
Reinstate Fred's change with the additional correction to the
|
||||
string drawing code he proposed on the mailing list.
|
||||
|
||||
2011-12-01 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSTextView.m
|
||||
|
|
|
@ -133,6 +133,7 @@ static void init_string_drawing(void)
|
|||
[layoutManager release];
|
||||
textContainer = [[NSTextContainer alloc]
|
||||
initWithContainerSize: NSMakeSize(10, 10)];
|
||||
[textContainer setLineFragmentPadding: 0];
|
||||
[layoutManager addTextContainer: textContainer];
|
||||
[textContainer release];
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ use bounds rectangle instead of frame? */
|
|||
_textView = nil;
|
||||
_containerRect.size = aSize;
|
||||
// Tests on Cocoa indicate the default value is 5.
|
||||
_lineFragmentPadding = 0.0; // 5.0;
|
||||
_lineFragmentPadding = 5.0;
|
||||
_observingFrameChanges = NO;
|
||||
_widthTracksTextView = NO;
|
||||
_heightTracksTextView = NO;
|
||||
|
|
|
@ -697,7 +697,6 @@ 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]; // Observed default on Mac OS X/Cocoa for textfields.
|
||||
[layoutManager addTextContainer: textContainer];
|
||||
RELEASE(textContainer);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue