Hi Graham,

Thanks for the reply.

Im new to ZF and have added the following line as you suggested, this
is what I now have:

$this->addElement(
                'Textarea',
                'message',
                        array(
                                'label' => 'Message * (will grow 
automatically)',
                                'required' => true,
                                'style'    => 'width: 200px'
                        )
                         )->addDecorator('HtmlTag', array('tag' => 'div'));

But this just wraps the whole form in a div tag, I guess I need to
remove/overwrite the default decorator? Would be
grateful of any help

Thanks

2008/11/24 Graham Anderson <[EMAIL PROTECTED]>
>
> 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



--
Thank You
Daniel Latter

Reply via email to