roubachof / Sharpnado.Tabs

Pure MAUI and Xamarin.Forms Tabs, including fixed tabs, scrollable tabs, bottom tabs, badge, segmented control, custom tabs, button tabs, bendable tabs...
MIT License
468 stars 58 forks source link

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

Open mkshiblu opened 11 months ago

mkshiblu commented 11 months ago

Platform:

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 commented 8 months ago

@roubachof Any update on this?

roubachof commented 3 months ago

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