• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 947
  • Last Modified:

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
0
wantime
Asked:
wantime
1 Solution
 
Scott MadeiraCommented:
In your CSS do this:

textarea {
    resize: none;
}

0
 
ukerandiCommented:
$body = new Zend_Form_Element_Textarea('body');
$body->setLabel('Body:')
    ->setRequired(true)
    ->setAttrib('COLS', '40')
    ->setAttrib('ROWS', '4');
$this->addElement($body);
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now