-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab bar right arrow #312
Comments
Hi! Do you have subscriptions set up? Could you post an example index.html + Main.elm somewhere that I can try? |
I have the same issues. I think it happens because you set the CSS 'box-sizing: border-box;' on the element. This would cause the padding for the space where the left chevron goes to be included in the width calculation for the whole tab bar, meaning it ends up that amount shorter than it should be. 'box-sizing: border-box' is quite a common thing to set in a CSS reset, so check all CSS that you are including. elm-mdl does not know how wide your tabs are. Set up a suitable width using Material.Layout.setTabsWidth, to avoid the scroll chevrons being shown when they don't need to be. |
I am just getting started with elm and elm-mdl and so far love it. I however have an annoying bug/problem when using the tab bar.
My main view looks quite simple:
There are two things wrong see picture:
One is that the right arrow is displayed, even though i only have 3 tabs. The other is the gap between my tabs and the arrow.
Is this a bug or did i do something wrong?
The text was updated successfully, but these errors were encountered: