[webkit-dev] Resizable text fields?

Adam Roben aroben at apple.com
Mon Jul 16 10:03:00 PDT 2007

On Jul 16, 2007, at 3:58 AM, Ruben Bakker wrote:

> Is there any way to enable resizable text fields in a WebKit  
> application? I noticed this feature in Safari 3 beta and hope it is  
> a WebKit feature and not a Safari addition.
> I searched the WebKit API and source, but didn't find anything.

    You need to set the CSS `resize' property on your textareas to  
`horizontal', `vertical', or `both' depending on the behavior you  
want. You could do this by modifying your CSS source files or  
programmatically adding styles at run time through the CSSOM. A rule  
such as:

textarea {
     resize: both;

would make all textareas resizable both horizontally and vertically.


More information about the webkit-dev mailing list