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

ShowOn SHOW_ON_MED problem #493

Closed
reofake opened this issue Nov 4, 2016 · 2 comments
Closed

ShowOn SHOW_ON_MED problem #493

reofake opened this issue Nov 4, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@reofake
Copy link

reofake commented Nov 4, 2016

I tried the showOn option to show a panel only on medium, but it doesn't work.

Code used :
MaterialPanel mediumFabPanel = new MaterialPanel();
mediumFabPanel.setShowOn(ShowOn.SHOW_ON_MED);

Fix for me (using initialClass) :
MaterialPanel mediumFabPanel = new MaterialPanel("hide-on-small-only", "hide-on-large-only");

Tested on version 1.6.0.

I have not try others parameters.

Not visible on your website.

Hope it helps.

@kevzlou7979
Copy link
Contributor

Thanks for catching, The issue was there's no class show-on-med`` on Materialize it must beshow-on-medium```, I will update the ENUM values.

@kevzlou7979 kevzlou7979 added the bug label Nov 4, 2016
@kevzlou7979 kevzlou7979 added this to the 2.0 milestone Nov 4, 2016
@kevzlou7979 kevzlou7979 self-assigned this Nov 4, 2016
@kevzlou7979
Copy link
Contributor

Fixed via 33f922b

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

No branches or pull requests

2 participants