mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-21 22:51:26 +08:00
Update release
This commit is contained in:
+19
-1
@@ -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
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user