mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 14:10:44 +00:00
* GormCore/GormInspectorsManager.m (setCurrentInspector:): get width from Inspector's minSize when new minSize is about to be set.
This commit is contained in:
parent
bcd8491262
commit
da8e911f0b
1 changed files with 4 additions and 3 deletions
|
@ -392,9 +392,9 @@
|
|||
newView = [[inspector window] contentView];
|
||||
if (newView != nil && newView != oldView)
|
||||
{
|
||||
id initialResponder = [[inspector window] initialFirstResponder];
|
||||
NSView *outer = [panel contentView];
|
||||
NSRect rect = [panel frame];
|
||||
id initialResponder = [[inspector window] initialFirstResponder];
|
||||
NSView *outer = [panel contentView];
|
||||
NSRect rect = [panel frame];
|
||||
/*
|
||||
We should compute the delta between the heights of the old inspector view
|
||||
and the new one. The delta will be used to compute the size of the inspector
|
||||
|
@ -409,6 +409,7 @@
|
|||
rect.origin.y = [panel frame].origin.y - delta;
|
||||
[panel setFrame: rect display: YES];
|
||||
}
|
||||
rect.size.width = [panel minSize].width;
|
||||
[panel setMinSize: rect.size];
|
||||
|
||||
rect = [outer bounds];
|
||||
|
|
Loading…
Reference in a new issue