Skip to content

Commit

Permalink
fix(droid): TabView header not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Nov 4, 2024
1 parent 35e38b0 commit dd1e3d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,11 @@
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<!-- Uno workaround: On Android, the ContentPresenters inside this are not calculating correctly -->
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<Viewbox x:Name="IconBox"
MaxWidth="{ThemeResource TabViewItemHeaderIconSize}"
MaxHeight="{ThemeResource TabViewItemHeaderIconSize}"
Expand Down
4 changes: 4 additions & 0 deletions src/Uno.UI.FluentTheme.v2/themeresources_v2.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -22960,6 +22960,10 @@
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<!-- Uno workaround: On Android, the ContentPresenters inside this are not calculating correctly -->
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Viewbox x:Name="IconBox" MaxWidth="{ThemeResource TabViewItemHeaderIconSize}" MaxHeight="{ThemeResource TabViewItemHeaderIconSize}" Margin="{ThemeResource TabViewItemHeaderIconMargin}">
<ContentControl x:Name="IconControl" Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TabViewTemplateSettings.IconElement}" IsTabStop="False" Foreground="{ThemeResource TabViewItemIconForeground}" HighContrastAdjustment="None" />
</Viewbox>
Expand Down

0 comments on commit dd1e3d2

Please sign in to comment.