-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Render breaking in IE11 (container width) #591
Comments
This was referenced Oct 17, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I changed this code (in "BootstrapSwitch.prototype._width"):
this.$container.width((this._handleWidth * 2) + this._labelWidth);
with this:
var containerWidth = Math.round(((this.$on.outerWidth() + this.$off.outerWidth()) + this._labelWidth) * 100) / 100;
this.$container.width(containerWidth);
It's correct? there is a best way ?
Thank you.
The text was updated successfully, but these errors were encountered: