ZF-6793: Zend_Captcha_Image without "width" and "height" attributes
Description
The render() method of Zend_Captcha_Image does not return the width and height of the image captcha:
public function render(Zend_View_Interface $view, $element = null)
{
return '
';
}
The following code does:
public function render(Zend_View_Interface $view, $element = null)
{
return '
';
}
Reasoning: "Without this information in the HTML, [the browser] cannot account for the viewport space needed for the image. As a result, it happens that if the user is reading below the image, suddenly [the browser] discovers the dimensions and the whole page jumps disconcertingly." Source: http://is.gd/Da3G)
Comments
Posted by Romain Fromi (fromi) on 2009-06-01T12:43:20.000+0000
Patch file for the fix suggested.
Posted by Stanislav Malyshev (stas) on 2009-06-17T14:51:35.000+0000
fixed, thanks