new solution to captcha resize problem

This commit is contained in:
ccd0 2014-09-01 11:35:20 -07:00
parent bf6f9b4429
commit f3f940a229

View File

@ -67,6 +67,10 @@ QR.captcha =
subtree: true
attributes: true
QR.captcha.load()
if QR.nodes.el.getBoundingClientRect().bottom > doc.clientHeight
QR.nodes.el.style.top = null
QR.nodes.el.style.bottom = '0px'
destroy: ->
$.globalEval 'Recaptcha.destroy()'
@beforeSetup()