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

Disable Knob redraw on screen Resize

Open aalokm opened this issue 9 years ago • 1 comments

Hi,

I have few dials on my screen. I have assigned width = 40px to all of them. but when the page loads the Div containing the dials is bigger than 40 px. Then if the user does a resize or goes for Full Screen mode the dials increase in size & persist the size even after the user has exited Full Screen mode. Is there a way to disable this behaviour? The Function used is as follows:

$(this).knob({
                        'min': 0,
                        'fgColor': fgColorVal,
                        'bgColor': '#dddddd',
                        'readOnly': true,
                        'width': '40px',
                        'dynamicDraw': false,
                        'lineCap': 'round'                        
                    });

aalokm avatar Aug 25 '16 09:08 aalokm

You should remove the width, it turns it responsive.

ismatim avatar Sep 08 '17 15:09 ismatim