On Monday 24 November 2008 15:23:34 Daniel Latter wrote:
> Hi,
>
> I am aware that this element (Dijit Textarea) grows vertically when text is
> added,
> after only specifying a width for the element.
>
> My observation is that if you don't include a space when typing in the
> textarea, on the first 'line'
> the textarea will not grow vertically and continue to grow horizontally
> indefinitely (as long as you press the key down).
>
> Is this the correct behaviour and is there a setting I can change to stop
> this from happening?
>
> OK, I know users may not do this but if there is a way to make it wrap
> without relying on a space being typed
> I would very much like to know.

There was an entry in the dojo bug tracker about this, unfortunately it was 
marked as resolved some time ago but iirc the resolution was just to add some 
conditional checking for safari. This appears to be an issue with firefox and 
possibly safari, if a dijit textarea is wrapped in an <li> or <dd> tag (and 
possibly others) then the auto-expand functionality is broken.

As a work around... if you tweak the decorators to wrap the elements in a 
<div> tag the textarea dijit should behave more consistently.

Graham

Reply via email to