nativescript-community / ui-material-components

Monorepo that contains all of the NativeScript Material Design plugins.
https://nativescript-community.github.io/ui-material-components/
Apache License 2.0
216 stars 80 forks source link

[IOS] Tabbar scroll horizontally when set 4 items #418

Open kefahB opened 1 year ago

kefahB commented 1 year ago

Hi @farfromrefug,

I try to investigate the behavior of the ui-material-tabs, it scroll horizontally when setting more then 3 items, I did set
here tabBar.alignment = justifyed or tabBar.alignment = leading but no one sound to change any think.

Do you have any idea about this topic ?

farfromrefug commented 1 year ago

@kefahB here is the doc for the iOS component https://github.com/material-components/material-components-ios/blob/242f895f053ae7fea62fc02289bc99aa0ef630a2/components/Tabs/README.md. the scroll behavior is explained there. Maybe you can find how to do what you want

kefahB commented 1 year ago

@farfromrefug, I catch it, there is som think wired, if the fontSize > 10 dpi the tabbar view being scrolling event if preferredLayoutStyle is fixed. I don't know if it is designed to do so !

I'll keep this open until I have a bit of time to do a PR (if needed)