nativescript-community / ui-material-components

Monorepo that contains all of the NativeScript Material Design plugins.

Home Page:https://nativescript-community.github.io/ui-material-components/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[IOS] Tabbar scroll horizontally when set 4 items

kefahB opened this issue · comments

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 ?

@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

@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)