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.

-Adam

_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to