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

Add timeout to wait for document dimensions #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JamesMcIntosh
Copy link

This is how I have managed to stop of SignaturePad from loading before the document has had time to set it's dimensions. Basically it polls every 100ms and waits for by default up 2 seconds, this can be configured in props.

This is a better fix then specifying explicit dimensions, it also does not interfere with that existing behaviour.

kevinstumpf#18

@JamesMcIntosh
Copy link
Author

I also noticed that there were problems when attempting to determine the height of the component while the keyboard is being dismissed as the dimensions are gradually increasing during the animation. I have amended the patch to wait until it has a pair of width/height values which match each other.

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

Successfully merging this pull request may close these issues.

2 participants