* 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:
Sergii Stoian 2020-01-04 02:01:36 +02:00
parent 1ce96d0d79
commit 5bcdc44706
2 changed files with 8 additions and 4 deletions

View file

@ -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];