Update release

This commit is contained in:
vczh
2016-01-06 02:48:21 -08:00
parent 181820fa50
commit 9fab9d9d6a
2 changed files with 23 additions and 3 deletions
+19 -1
View File
@@ -1535,6 +1535,13 @@ GuiDialogBase
return dynamic_cast<GuiWindow*>(host);
}
}
else if (auto composition = dynamic_cast<GuiGraphicsComposition*>(rootObject))
{
if (auto host = composition->GetRelatedControlHost())
{
return dynamic_cast<GuiWindow*>(host);
}
}
}
return nullptr;
}
@@ -4409,7 +4416,6 @@ GuiPopup
INativeWindow* window=GetNativeWindow();
if(window)
{
Size size=window->GetBounds().GetSize();
Rect bounds(Point(0, 0), control->GetBoundsComposition()->GetBounds().GetSize());
ShowPopup(control, bounds, preferredTopBottomSide);
}
@@ -33665,6 +33671,12 @@ GuiFlowComposition
alignment = value;
needUpdate = true;
}
void GuiFlowComposition::ForceCalculateSizeImmediately()
{
GuiBoundsComposition::ForceCalculateSizeImmediately();
UpdateFlowItemBounds(true);
}
Size GuiFlowComposition::GetMinPreferredClientSize()
{
@@ -34179,6 +34191,12 @@ GuiStackComposition
padding = value;
EnsureStackItemVisible();
}
void GuiStackComposition::ForceCalculateSizeImmediately()
{
GuiBoundsComposition::ForceCalculateSizeImmediately();
UpdateStackItemBounds();
}
Size GuiStackComposition::GetMinPreferredClientSize()
{
+4 -2
View File
@@ -6886,7 +6886,8 @@ Stack Compositions
/// <summary>Set the stack item padding.</summary>
/// <param name="value">The stack item padding.</param>
void SetPadding(vint value);
void ForceCalculateSizeImmediately()override;
Size GetMinPreferredClientSize()override;
Rect GetBounds()override;
@@ -7200,7 +7201,8 @@ Flow Compositions
/// <summary>Set the alignment for rows.</summary>
/// <param name="value">The alignment.</param>
void SetAlignment(FlowAlignment value);
void ForceCalculateSizeImmediately()override;
Size GetMinPreferredClientSize()override;
Rect GetBounds()override;
};