chaosifier / TabView

TabView control for Xamarin.Forms.
MIT License
124 stars 32 forks source link

Strange behaviour when removing a tab from the middle #45

Open singhal2 opened 4 years ago

singhal2 commented 4 years ago

I observed a strange behaviour when a middle tab is removed on runtime. In that case, it seems like the header view does not adjust automatically. I created a tab view with 5 tabs and tried to remove tab 4 (index 3).

Method 1: tabView.RemoveTab(3); In this case, both the tab and the content is removed however the header strip is not adjusted and there is space left where the tab was removed.

Screenshot 2020-08-10 at 21 45 26

Method 2: tabView.ItemSource.Remove(tabView.ItemSource[3]); In this case, the tab content is removed however the header still exists. However when the header is clicked, last tab content is shown.

Great stuff otherwise. Thank you.

Palak247 commented 3 years ago

Any solution to this or any hack or workaround ?