aterrien/jQuery-Knob

Disable Knob redraw on screen Resize

Opened this issue · 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'                        
                    });

You should remove the width, it turns it responsive.