jQuery-Knob icon indicating copy to clipboard operation
jQuery-Knob copied to clipboard

Problem with digit leaving the Dial on small screen

Open Speedy2k opened this issue 5 years ago • 2 comments

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 avatar Dec 05 '19 22:12 Speedy2k

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

Speedy2k avatar Dec 05 '19 22:12 Speedy2k

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

xpectmore avatar Dec 12 '19 09:12 xpectmore