Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Tabs always think they need pagination at first #271

Closed
emiliapana opened this issue Sep 15, 2014 · 1 comment
Closed

Tabs always think they need pagination at first #271

emiliapana opened this issue Sep 15, 2014 · 1 comment

Comments

@emiliapana
Copy link

When using the tabs, they always think the pagination is needed at first, even if I only have on tab in there and it fits just fine. I traced the problem to line 45 in pagination.js: https://github.com/angular/material/blob/master/src/components/tabs/js/pagination.js#L45

In my case, element.prop('clientWidth') is always 0, making the tabsWidth negative and shouldPaginate true. Is there something I should be doing when defining my tabs to make sure the clientWidth is not 0?

@ajoslin
Copy link
Contributor

ajoslin commented Sep 16, 2014

Fixed, thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants