Skip to content
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

MaterialTab wrong line on resize #532

Closed
andrescirulo opened this issue Dec 15, 2016 · 3 comments
Closed

MaterialTab wrong line on resize #532

andrescirulo opened this issue Dec 15, 2016 · 3 comments

Comments

@andrescirulo
Copy link

When you resize the page by showing or hiding the sidenav the line under the selected tab changes incrorrectly its size.
It can be seen happening on the demo page.

@kevzlou7979
Copy link
Contributor

It seems that it;s a materialize issue. The calculation of the indicator width is not well calculated on browser resize.

@kevzlou7979 kevzlou7979 self-assigned this Dec 21, 2016
@kevzlou7979 kevzlou7979 added this to the 2.0 milestone Dec 21, 2016
@kevzlou7979
Copy link
Contributor

Filed an issue to materialize Dogfalo/materialize#4323

@kevzlou7979
Copy link
Contributor

kevzlou7979 commented Apr 21, 2017

Hi there @andrescirulo ,

Upon investigating the issue, we provided a method for tabs for resize() , which recalculates and reinitialize the tabs .

Added test demo
https://gwtmaterialdesign.github.io/gwt-material-patterns/snapshot/#navbar_tab_pus

Documentation

Workaroud

        sidenav.addOpenedHandler(event -> tab.resize());
        sidenav.addClosedHandler(event -> tab.resize());

Fixed via 9c4493d

@kevzlou7979 kevzlou7979 added this to the 2.0 milestone Apr 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants