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

Switch not displaying properly if parent initially hidden #44

Closed
brian-slate opened this issue Nov 19, 2014 · 4 comments
Closed

Switch not displaying properly if parent initially hidden #44

brian-slate opened this issue Nov 19, 2014 · 4 comments

Comments

@brian-slate
Copy link

If the parent is hidden initially, control does not display properly as the dimensions cannot be calculated. Is there something that can be done to trigger a "recalc"?

From the bootstrap-switch issues: Bttstrp/bootstrap-switch#376

The solution here was to call $('.my-bs-switch-input').bootstrapSwitch('_width'); when visible. Needs support for ng-show/hide perhaps.

@frapontillo
Copy link
Owner

Have you tried forcing the update to bootstrap-switch 3.2.2? How does the directive behave in that situation?

@brian-slate
Copy link
Author

That's what I was using initially. Oddly enough, it's broken with 3.2.2, but works with 3.0.2.

@frapontillo
Copy link
Owner

Then this probably is related to the original plugin, I will check on it as soon as I am able.

@frapontillo
Copy link
Owner

I have updated the plugin and tested it without being able to reproduce the problem. I will consider this "not a bug" until a demo is provided.

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