ux: try to fix the issue that flyout did not ajust its size to content (#2175)

This commit is contained in:
leo
2026-03-10 21:22:53 +08:00
parent baf85af7c0
commit a3f4c62298

View File

@@ -227,17 +227,10 @@
<Setter Property="Template">
<ControlTemplate>
<Grid>
<Border Background="{DynamicResource Brush.Popup}" BorderThickness="0" Margin="4" CornerRadius="{TemplateBinding CornerRadius}">
<Border.Effect>
<DropShadowEffect OffsetX="0" OffsetY="0" BlurRadius="4" Color="Black" Opacity=".6"/>
</Border.Effect>
</Border>
<Border Margin="4" CornerRadius="{TemplateBinding CornerRadius}" Effect="drop-shadow(0 0 4 #A0000000)">
<Border Name="LayoutRoot"
Margin="4"
Padding="12"
Background="Transparent"
Background="{DynamicResource Brush.Popup}"
BorderThickness="0"
CornerRadius="{TemplateBinding CornerRadius}">
<ScrollViewer HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
@@ -252,7 +245,7 @@
VerticalContentAlignment="Stretch" />
</ScrollViewer>
</Border>
</Grid>
</Border>
</ControlTemplate>
</Setter>
</Style>