function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Devendra SawantDevendra Sawant 

Textarea in vf page

Hi,

 

I can easily dragged the text area field. How can i restrict user from dragging or stretching textarea??

 

Cheers,

Devendra S

Best Answer chosen by Admin (Salesforce Developers) 
yashagarwalyashagarwal

You can use some styling to prevent the resizing , here is something you could use :

 

<apex:inputtextarea value="{!selectedFolder}" style="resize:none;"/>

 Hope that helps.

All Answers

doubleminusdoubleminus

I believe that's a browser capability for any text area field and not controllable via visualforce code.

osamanosaman

On chrome does that I guess

yashagarwalyashagarwal

You can use some styling to prevent the resizing , here is something you could use :

 

<apex:inputtextarea value="{!selectedFolder}" style="resize:none;"/>

 Hope that helps.

This was selected as the best answer
ALEJO CARPENZANOALEJO CARPENZANO
yashagarwal it worked! i cant make the textarea smaller but i can make it bigger... idk how to disable this property too...