revert change by fred.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34230 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2011-11-30 15:43:04 +00:00
parent db75526dee
commit 14d5d889be
3 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2011-11-28 Gregory Casamento <greg.casamento@gmail.com>
* Source/NSTextView.m (-buildUpTextNetwork:):
* Source/NSTextContainer.m (-initWithContainerSize:):
revert previous change by Fred since it was causing labels
and textfields to also be shifted which is not correct.
2011-11-28 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPopUpButtonCell.m (-initWithCoder:): If no selection

View file

@ -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 = 5.0;
_lineFragmentPadding = 0.0; // 5.0;
_observingFrameChanges = NO;
_widthTracksTextView = NO;
_heightTracksTextView = NO;

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]; // Observed default on Mac OS X/Cocoa for textfields.
[layoutManager addTextContainer: textContainer];
RELEASE(textContainer);