Sharpnado.Tabs icon indicating copy to clipboard operation
Sharpnado.Tabs copied to clipboard

[MAUI] Double border on hidden underlined tabs for Segemented TabHostView

Open mkshiblu opened this issue 2 years ago • 2 comments

Platform:

  • OS: [Android]
  • Device: [AndroidEmulator]
  • Sdk version: [Android SDK 29]
  • MAUI: [.net70-android]

Describe the bug

If an underlined tab is hidden via its IsVisible="False", its side tabs border is merged and shown as double bordered for segmented tabhostview

To Reproduce


<ContentPage.Resources>
    <Style TargetType="tabs:UnderlinedTabItem">
        <Setter Property="UnselectedLabelColor"
                Value="#333333" />
        <Setter Property="HorizontalOptions"
                Value="FillAndExpand" />
        <Setter Property="WidthRequest"
                Value="100" />
        <Setter Property="Padding"
                Value="4" />
    </Style>
</ContentPage.Resources>
<tabs:TabHostView x:Name="tabHost"
                  ShowScrollbar="False"
                  TabType="Scrollable"
                  IsSegmented="True"
                  CornerRadius="0"
                  HorizontalOptions="FillAndExpand"
                  HeightRequest="60"
                  
                  SegmentedHasSeparator="True"
                  SegmentedOutlineColor="Red">

    <tabs:UnderlinedTabItem Label="All" />
    <tabs:UnderlinedTabItem Label="Canada" />
    <tabs:UnderlinedTabItem Label="America" IsVisible="False"/>
    <tabs:UnderlinedTabItem Label="Brazil" />
    <tabs:UnderlinedTabItem Label="France" />
</tabs:TabHostView>

Screenshots (if applicable)

image

mkshiblu avatar Oct 09 '23 09:10 mkshiblu

@roubachof Any update on this?

mkshiblu avatar Jan 03 '24 10:01 mkshiblu

any pr is welcome: it's a very straightforward fix.

roubachof avatar May 31 '24 08:05 roubachof