Open alejost848 opened 6 years ago
OK, I got it. I had to reference the container directly using this.$.recaptcha.container
and then call refit()
on it.
I think it would be a nice addition to have an example in the demo. I can create a pull request if needed.
I'm trying to implement
google-recaptcha
in a contact form, but I'm having problems trying to refit the element on scroll.In the README it says that:
If I scroll, the element refits properly, but I haven't found a way to make it work on resize. I tried adding an
iron-resize
listener on my element and then callingnotifyResize()
orrefit()
ongoogle-recaptcha
but that didn't work.Can you give an example of how do you notify
<google-recaptcha>
of a resize?Thanks.