Link to home
Start Free TrialLog in
Avatar of wantime
wantime

asked on

PHP5/Zend: Zend_Form_Element_Textarea problem, how do i let it not resizable.

hello all,

i have used component  Zend_Form_Element_Textarea  in my application.

but this component is resizable, i.e., one can use mouse to change its size on the browser.

attached is a screenshot, right down the image you can see a triangle there, using this triangle the size of textarea could be changed.

the question is: how do i define this component, so that nobody could change its size on the browser.

thanks,
wantime
resize.jpg
ASKER CERTIFIED SOLUTION
Avatar of Scott Madeira
Scott Madeira
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ukerandi
$body = new Zend_Form_Element_Textarea('body');
$body->setLabel('Body:')
    ->setRequired(true)
    ->setAttrib('COLS', '40')
    ->setAttrib('ROWS', '4');
$this->addElement($body);