mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
db75526dee
commit
14d5d889be
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue