-
Notifications
You must be signed in to change notification settings - Fork 440
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
Toggle smaller when loaded in hidden div #106
Comments
I have fixed this issue by using the outerwidth trick by cloning the hidden element var width = this.options.width || Math.max($toggleOn.outerWidth(), $toggleOff.outerWidth()) + ($toggleHandle.outerWidth() / 2)
function getOuterWidth(obj) {
|
I have used a modified version of this to create a pull request... |
landy2005
added a commit
to landy2005/bootstrap-toggle
that referenced
this issue
Mar 7, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using toggles that shown after showing a div (that was hidden initially), the toggle is smaller than normal.
When removing the initial 'hidden state', the toggles are the same size as expected.
Check this JSFiddle for a 'working' example
The text was updated successfully, but these errors were encountered: