Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Tabs always think they need pagination at first #271

@emiliapana

Description

@emiliapana

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions