In order to make the textarea resizable, the plugin wraps it in a div which
takes on it's computed outerWidth and outerHeight (in pixels), regardless of
what is set as width and height (in your case a percentage). A workaround is
to add .parent().width('100%') after the .resizable() call. This would only
let you leave the width as a percentage and not have the width be
user-resizable (you would change handles to 's' instead of 's,e').
Resizables doesn't currently support percentage resizing, but you can
request the feature by entering a feature/enhancement ticket here:

http://ui.jquery.com/bugs/newticket (note: requires registration)

Also, in the future, should you have any other questions, there is a
dedicated jQuery UI mailing list:

http://groups.google.com/group/jquery-ui/

- Richard

On Tue, Dec 2, 2008 at 5:13 AM, nos <[EMAIL PROTECTED]> wrote:

>
> hi
> I  applied  the resize option to resize a textarea's height while the
> width should be dynamic (100%), so if the user resizes the browser
> window the textarea changes it's size.
>
> The default behavior seams to be that the width changes to a fixed
> value. Anyone an idea how to change that?
> thanks for any hints
>
>  $(".resize-y").resizable({
>    handles: "s,e",
>    preventDefault: true
>  });
>
> nos
>

Reply via email to