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

How to use it better in mobile devices? #143

Open
LaoliangGitHub opened this issue Sep 5, 2017 · 0 comments
Open

How to use it better in mobile devices? #143

LaoliangGitHub opened this issue Sep 5, 2017 · 0 comments

Comments

@LaoliangGitHub
Copy link

I use your plug-in in mobile devices, but how can I implement the adaptation?
I added my own judgement, but the result of the horizontal screen loading was different from the result of the vertical screen loading. Excuse me, how can I solve this problem?

if (window.orientation === 180 || window.orientation === 0) {
$sigdiv.jSignature({width:"100%",height:"100%"});
$sigdiv.jSignature("destroy");
}
if (window.orientation === 90 || window.orientation === -90 ){
$sigdiv.jSignature({width:"100%",height:"65%"});
$sigdiv.jSignature("destroy");
}

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

1 participant