You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The button sizes are not correctly set if it was created in a display: none element. Apparently the size calculation below is not correctly calculating the size if the element has display: none css property: var width = this.options.width || Math.max($toggleOn.width(), $toggleOff.width())+($toggleHandle.outerWidth()/2)
From the above all width() functions return zero which is not the correct size when the display is set back to block.
This makes the sizes not correct whenever you create the elements inside bootstrap tabs as an example.
I have set an explicit width, which fixes the issue, but I hope there would be a global fix for this.
The text was updated successfully, but these errors were encountered:
Hi,
The button sizes are not correctly set if it was created in a display: none element. Apparently the size calculation below is not correctly calculating the size if the element has display: none css property:
var width = this.options.width || Math.max($toggleOn.width(), $toggleOff.width())+($toggleHandle.outerWidth()/2)
From the above all width() functions return zero which is not the correct size when the display is set back to block.
This makes the sizes not correct whenever you create the elements inside bootstrap tabs as an example.
I have set an explicit width, which fixes the issue, but I hope there would be a global fix for this.
The text was updated successfully, but these errors were encountered: