bootstrap-switch-button
bootstrap-switch-button copied to clipboard
not sized with content if hidden at start
the toggle is not sized at the label's content (onlable or offlabel) if the container that contains it is hidden at the initialisation. the toggle and its container are not visible
the problem is the getBoundingClientRect() used at step #7 : Set button W/H, lineHeight
https://stackoverflow.com/questions/42691675/how-to-getboundingclientrect-from-a-hidden-element-doesnt-work-on-ie
Is there a fix / workaround for this?
created a folk here where all works fine: https://github.com/digittal/bootstrap4-toggle
Cheers! thank you @stphntlbt