* Palettes/2Controls/GormMatrixAttributesInspector.m: use ok: on end editing of

textfields objects.
  (ok:): update window content view on object's dimensions changes.
This commit is contained in:
Sergii Stoian 2020-01-09 03:15:50 +02:00
parent 540ce531df
commit 6a460bc582

View file

@ -182,9 +182,10 @@ NSUInteger colsStepperValue;
[object addColumn];
}
}
// [object sizeToCells];
NSRect oFrame = [[object superview] frame];
[object sizeToCells];
[object setNeedsDisplay: YES];
[[object superview] setNeedsDisplay: YES];
[[[object window] contentView] setNeedsDisplayInRect: oFrame];
}
else if(sender == rowsStepper)
{
@ -302,7 +303,7 @@ NSUInteger colsStepperValue;
/* delegate method for tag Form */
-(void) controlTextDidChange:(NSNotification*) aNotification
- (void) controlTextDidEndEditing: (NSNotification*)aNotification
{
[self ok:[aNotification object]];
}