Skip to content

SfTabView Wrong height #362

Description

@alessandrocaliaro

Description

I have a tabview with 3 tabitems. When first viewed, the tabitem takes up the full height possible.

   <Label
       Grid.Row="0"
       Grid.Column="0"
       Margin="20,0,0,0"
       Style="{StaticResource labelTitleStyle}"
       Text="{Binding UserName}" />

   <tabView:SfTabView
       Grid.Row="1"
       Grid.Column="0"
       SelectedIndex="{Binding SelectedViewIndex}">

       <tabView:SfTabView.Items>

           <!--  Telemetries  -->
           <tabView:SfTabItem Header="{Binding SessionsTabHeader}">
               <tabView:SfTabItem.Content>
                   <Grid ColumnDefinitions="*" RowDefinitions="*">
                       <fieldSet:TelemetriesView BindingContext="{Binding UserTelemetriesVM}" />
                   </Grid>
               </tabView:SfTabItem.Content>
           </tabView:SfTabItem>

           <!--  User  -->
           <tabView:SfTabItem Header="{Binding UserTabHeader}">
               <tabView:SfTabItem.Content>
                   <Grid ColumnDefinitions="*" RowDefinitions="*">
                       <contentViews:User BindingContext="{Binding Source={RelativeSource AncestorType={x:Type user:UserViewModel}}, Path=.}" />
                   </Grid>
               </tabView:SfTabItem.Content>
           </tabView:SfTabItem>

           <!--  Vehicle  -->
           <tabView:SfTabItem Header="{Binding VehicleTabHeader}" IsVisible="{Binding IsSmartTariffEnabled}">
               <tabView:SfTabItem.Content>
                   <Grid ColumnDefinitions="*" RowDefinitions="*">
                       <contentViews:Vehicle BindingContext="{Binding Source={RelativeSource AncestorType={x:Type user:UserViewModel}}, Path=.}" />
                   </Grid>
               </tabView:SfTabItem.Content>
           </tabView:SfTabItem>
       </tabView:SfTabView.Items>
   </tabView:SfTabView>
Image

Pressing one of the items takes you to a detail page that hides the shell tab bars.

Image

when going back to the page with the SfTabView, the height of the SfTabItem changes, leaving unnecessary white space

Image

Steps to Reproduce

Take a look to description

.NET Version

.NET 10.0

Version with bug

1.0.7

Is this a regression from previous behavior?

Not sure, haven't tested other versions

Last Known Working Version

1.0.6

Affected platforms

Android

Affected Platform Versions

Api 34 android 14

Have you found a workaround?

No response

Relevant log output

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions