Google reCAPTCHA is not responsive!
-
To fix this bug use js code below:
function changeCapthaSize() {
var reCaptchaWidth = 302;
var containerWidth = $(‘.CLASS_DIV_ELEMENT’).width();
if(reCaptchaWidth > containerWidth) {
var reCaptchaScale = containerWidth / reCaptchaWidth;
$(‘.g-recaptcha’).css({
‘transform’:’scale(‘+reCaptchaScale+’)’,
‘transform-origin’:’left top’
});
}
};$(window).ready(function(){
changeCapthaSize();
});
$(window).resize(function(){
changeCapthaSize();
});
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Google reCAPTCHA is not responsive!’ is closed to new replies.