Skip to content

Commit a3f4c62

Browse files
committed
ux: try to fix the issue that flyout did not ajust its size to content (#2175)
1 parent baf85af commit a3f4c62

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/Resources/Styles.axaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -227,17 +227,10 @@
227227

228228
<Setter Property="Template">
229229
<ControlTemplate>
230-
<Grid>
231-
<Border Background="{DynamicResource Brush.Popup}" BorderThickness="0" Margin="4" CornerRadius="{TemplateBinding CornerRadius}">
232-
<Border.Effect>
233-
<DropShadowEffect OffsetX="0" OffsetY="0" BlurRadius="4" Color="Black" Opacity=".6"/>
234-
</Border.Effect>
235-
</Border>
236-
230+
<Border Margin="4" CornerRadius="{TemplateBinding CornerRadius}" Effect="drop-shadow(0 0 4 #A0000000)">
237231
<Border Name="LayoutRoot"
238-
Margin="4"
239232
Padding="12"
240-
Background="Transparent"
233+
Background="{DynamicResource Brush.Popup}"
241234
BorderThickness="0"
242235
CornerRadius="{TemplateBinding CornerRadius}">
243236
<ScrollViewer HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
@@ -252,7 +245,7 @@
252245
VerticalContentAlignment="Stretch" />
253246
</ScrollViewer>
254247
</Border>
255-
</Grid>
248+
</Border>
256249
</ControlTemplate>
257250
</Setter>
258251
</Style>

0 commit comments

Comments
 (0)