mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-30 21:25:17 +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);
|
||||
}
|
||||
@@ -33666,6 +33672,12 @@ GuiFlowComposition
|
||||
needUpdate = true;
|
||||
}
|
||||
|
||||
void GuiFlowComposition::ForceCalculateSizeImmediately()
|
||||
{
|
||||
GuiBoundsComposition::ForceCalculateSizeImmediately();
|
||||
UpdateFlowItemBounds(true);
|
||||
}
|
||||
|
||||
Size GuiFlowComposition::GetMinPreferredClientSize()
|
||||
{
|
||||
Size minSize = GuiBoundsComposition::GetMinPreferredClientSize();
|
||||
@@ -34180,6 +34192,12 @@ GuiStackComposition
|
||||
EnsureStackItemVisible();
|
||||
}
|
||||
|
||||
void GuiStackComposition::ForceCalculateSizeImmediately()
|
||||
{
|
||||
GuiBoundsComposition::ForceCalculateSizeImmediately();
|
||||
UpdateStackItemBounds();
|
||||
}
|
||||
|
||||
Size GuiStackComposition::GetMinPreferredClientSize()
|
||||
{
|
||||
Size minSize = GuiBoundsComposition::GetMinPreferredClientSize();
|
||||
|
||||
@@ -6887,6 +6887,7 @@ Stack Compositions
|
||||
/// <param name="value">The stack item padding.</param>
|
||||
void SetPadding(vint value);
|
||||
|
||||
void ForceCalculateSizeImmediately()override;
|
||||
Size GetMinPreferredClientSize()override;
|
||||
Rect GetBounds()override;
|
||||
|
||||
@@ -7201,6 +7202,7 @@ Flow Compositions
|
||||
/// <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