(-initWithFrame:textContainer:): Make the default text container inset (2,0).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15751 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-01-28 21:23:51 +00:00
parent a2079ad1b2
commit eaec5ebcea
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-01-28 22:20 Alexander Malmberg <alexander@malmberg.org>
* Source/NSTextView.m (-initWithFrame:textContainer:): Make the
default text container inset (2,0).
2003-01-28 20:02 Alexander Malmberg <alexander@malmberg.org>
* Source/GSHorizontalTypesetter: Set proper used rect for line frag

View file

@ -415,6 +415,7 @@ If a text view is added to an empty text network, it keeps its attributes.
_minSize = NSMakeSize(0, 0);
_maxSize = NSMakeSize(HUGE,HUGE);
_textContainerInset = NSMakeSize(2, 0);
ASSIGN(_insertionPointColor, [NSColor textColor]);
ASSIGN(_backgroundColor, [NSColor textBackgroundColor]);
@ -437,6 +438,7 @@ If a text view is added to an empty text network, it keeps its attributes.
_tf.smart_insert_delete = NO;
[container setTextView: self];
[self invalidateTextContainerOrigin];
return self;
}
@ -609,6 +611,7 @@ _tf.delegate_responds_to* */
}
[self _recacheDelegateResponses];
[self invalidateTextContainerOrigin];
return self;
}
@ -896,6 +899,7 @@ to make sure syncing is handled properly in all cases.
NSTEXTVIEW_SYNC;
[self setHorizontallyResizable: NO]; /* TODO: why? */
[self setVerticallyResizable: NO];
[self setTextContainerInset: NSMakeSize(0,0)]; /* TODO: this is kindof ugly */
_tf.is_field_editor = flag;
}