soundar24 / roundSlider

roundSlider - A free jQuery plugin
https://roundsliderui.com/
MIT License
267 stars 80 forks source link

tooltip border does not resize on "Enter" #84

Open vronchetti opened 6 years ago

vronchetti commented 6 years ago

I've noticed in the demos that the border box for a value does not resize to accommodate a number of more digits until the user clicks outside of the box. Pressing the "Enter" key has no effect. Is this intended behavior? Is there a clean fix? Thank you!

screen shot 2018-09-13 at 8 46 10 am Type "1" and click Enter

screen shot 2018-09-13 at 8 46 27 am Type "23" and click Enter, tooltip border does not resize

screen shot 2018-09-13 at 8 46 33 am Click outside box, tooltip border resizes to fit "23"

soundar24 commented 6 years ago

@vronchetti actually this needs to be fixed, when press enter key. But extending the textbox width on type, may vary based on application behavior, so that it was not considered in the source at the initial time.

However you can achieve your requirement in the application level like below:

http://jsfiddle.net/soundar24/0bxqgf5t/

But I will consider this in source level and provide the option for easy customization.

Thanks :)