Fixed the controlgallery somehow.
This commit is contained in:
parent
11ef2c9076
commit
f8b113dd18
|
@ -72,14 +72,24 @@ uiDarwinControlDefaultSetSuperview(uiGroup, box)
|
||||||
|
|
||||||
static BOOL uiGroupChildrenShouldAllowSpaceAtTrailingEdge(uiDarwinControl *c)
|
static BOOL uiGroupChildrenShouldAllowSpaceAtTrailingEdge(uiDarwinControl *c)
|
||||||
{
|
{
|
||||||
// always allow growth
|
uiControl *parent;
|
||||||
// TODO actually these should probably only allow growth if the parent does...
|
|
||||||
|
// TODO figure out why this works
|
||||||
|
parent = uiControlParent(uiControl(c));
|
||||||
|
if (parent != NULL)
|
||||||
|
return uiDarwinControlChildrenShouldAllowSpaceAtTrailingEdge(uiDarwinControl(parent));
|
||||||
|
// always allow growth if not
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL uiGroupChildrenShouldAllowSpaceAtBottom(uiDarwinControl *c)
|
static BOOL uiGroupChildrenShouldAllowSpaceAtBottom(uiDarwinControl *c)
|
||||||
{
|
{
|
||||||
// always allow growth
|
uiControl *parent;
|
||||||
|
|
||||||
|
parent = uiControlParent(uiControl(c));
|
||||||
|
if (parent != NULL)
|
||||||
|
return uiDarwinControlChildrenShouldAllowSpaceAtBottom(uiDarwinControl(parent));
|
||||||
|
// always allow growth if not
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue