Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Knob redraw on screen Resize #333

Open
aalokm opened this issue Aug 25, 2016 · 1 comment
Open

Disable Knob redraw on screen Resize #333

aalokm opened this issue Aug 25, 2016 · 1 comment

Comments

@aalokm
Copy link

aalokm commented Aug 25, 2016

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'                        
                    });
@ismatim
Copy link

ismatim commented Sep 8, 2017

You should remove the width, it turns it responsive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants