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

Issue with dyamic resizing on hidden container: height is wrong. #151

Closed
ryangriggs opened this issue May 1, 2018 · 3 comments
Closed

Comments

@ryangriggs
Copy link

If jSignature is applied to a hidden container (i.e. a modal dialog, etc), the jSignature initialization routine does not take into account the final height of the container, thus rendering the signature box as small height as possible.

However, if you make the hidden container visible first, then apply $("#signature").jSignature(), the height of the signature box matches the container.

@brinley
Copy link
Owner

brinley commented May 1, 2018

Have you tried having a container with fixed height within the modal container that is toggled?
Otherwise you might need to initialise jSignature after the modal is made visible

@ryangriggs
Copy link
Author

ryangriggs commented May 2, 2018 via email

@brinley
Copy link
Owner

brinley commented May 2, 2018

Apart from the two alternatives that I mentioned before,

  1. initialise when modal is visible
  2. set fixed height on the signature container
  3. initialise modal whenever but call jSignature resize when modal is visible

@brinley brinley closed this as completed Nov 1, 2018
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