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 subtree: true
attributes: true attributes: true
QR.captcha.load() QR.captcha.load()
if QR.nodes.el.getBoundingClientRect().bottom > doc.clientHeight
QR.nodes.el.style.top = null
QR.nodes.el.style.bottom = '0px'
destroy: -> destroy: ->
$.globalEval 'Recaptcha.destroy()' $.globalEval 'Recaptcha.destroy()'
@beforeSetup() @beforeSetup()