mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
* GormCore/GormInspectorsManager.m (setCurrentInspector:): increase height of
inspector panel frame if inspector taller then previous; set minimum size accordingly. * Palettes/2Controls/GormNSMatrixInspector.gorm: made inspector content taller to look better and as a test case for change in GorInspectorManager.
This commit is contained in:
parent
1ce96d0d79
commit
5bcdc44706
2 changed files with 8 additions and 4 deletions
|
@ -401,11 +401,15 @@
|
|||
panel. Is is needed because subsequent changes of object selection lead to
|
||||
the cluttered inspector's UI otherwise.
|
||||
*/
|
||||
// CGFloat delta = [newView frame].size.height - [oldView frame].size.height;
|
||||
CGFloat delta = [newView frame].size.height - [oldView frame].size.height;
|
||||
|
||||
// rect.size.height = rect.size.height + delta;
|
||||
// rect.origin.y = [panel frame].origin.y - delta;
|
||||
// [panel setFrame: rect display: YES];
|
||||
rect.size.height += delta;
|
||||
if (delta > 0)
|
||||
{
|
||||
rect.origin.y = [panel frame].origin.y - delta;
|
||||
[panel setFrame: rect display: YES];
|
||||
}
|
||||
[panel setMinSize: rect.size];
|
||||
|
||||
rect = [outer bounds];
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue