aterrien / jQuery-Knob

Nice, downward compatible, touchable, jQuery dial
http://anthonyterrien.com/knob/
MIT License
5.03k stars 1.24k forks source link

Problem with digit leaving the Dial on small screen #364

Open Speedy2k opened 4 years ago

Speedy2k commented 4 years ago

I have a problem where i have a left menu bar that is folded by default, when i unfold the menu bar the digit ket moved away from the dial.

image

image

Here is my layout in the html:

InHg

And my js to generate it! $(document).ready(function(){ console.log("Document is loaded!"); $(function() { $("#vacKnob").knob({ 'min':0, 'max':30, 'step':'.1', 'angleArc': 250, 'angleOffset':-125, 'width':100, 'height':100, 'fgColor':'#71b444', 'lineCap':'round', 'readOnly':true, }); }); $("#vacKnob").val(0).trigger('change'); });

Speedy2k commented 4 years ago

Also another question, how can i modify the max value once the main setup is done ?

xpectmore commented 4 years ago

if you use the plugin in this way you can improve html input number everywhere : https://github.com/aterrien/jQuery-Knob/issues/365