bootstrap-switch icon indicating copy to clipboard operation
bootstrap-switch copied to clipboard

Correction for unequal handle text lengths

Open dk-ok opened this issue 7 years ago • 0 comments

Line 502, _width() function:

//this._handleWidth = this.$on.outerWidth();
//CHANGE: _handleWidth computation to account for unequal text lengths
this._handleWidth = Math.max(this.$on.outerWidth(), this.$off.outerWidth());

Looks good and seems to work well. Issue is apparent on demo page "Off Text" example. Try text with no spaces.

dk-ok avatar May 18 '17 02:05 dk-ok