* Source/NSTextView.m (-setFieldEditor:): Use different values for

both cases.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34347 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-12-22 22:00:42 +00:00
parent 30a76f4458
commit e740f7b0cc
2 changed files with 19 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2011-12-22 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextView.m (-setFieldEditor:): Use different values for
both cases.
2011-12-22 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSSavePanel.m (-browser:createRowsForColumn:inMatrix:):

View file

@ -1401,9 +1401,20 @@ to make sure syncing is handled properly in all cases.
- (void) setFieldEditor: (BOOL)flag
{
NSTEXTVIEW_SYNC;
[self setHorizontallyResizable: NO]; /* TODO: why? */
[self setVerticallyResizable: NO];
[self setTextContainerInset: NSMakeSize(0,0)]; /* TODO: this is kindof ugly */
if (flag)
{
[self setHorizontallyResizable: NO]; /* TODO: why? */
[self setVerticallyResizable: NO];
[self setTextContainerInset: NSMakeSize(0,0)]; /* TODO: this is kind of ugly */
[_textContainer setLineFragmentPadding: 0];
}
else
{
[self setHorizontallyResizable: NO]; /* TODO: why? */
[self setVerticallyResizable: YES];
[self setTextContainerInset: NSMakeSize(2,0)];
[_textContainer setLineFragmentPadding: 5.0];
}
_tf.is_field_editor = flag;
}