If #article_DTU_Content is a textarea

{{results.update_form.element('#article_DTU_Content')['_cols']=300}} should 
work as well 
as {{results.update_form.element('#article_DTU_Content')['_rows']=10}} 

unless you set the element width somewhere.

In other words, for example (code from my controller):

        txt_areas = form.elements("textarea")
        for txt_area in txt_areas:
            txt_area['_cols'] = 25
            txt_area['_rows'] = 5
            txt_area['_style'] = "width:245px"  # this statement overrides 
number of cols, so adding a comment to it,  cols attribute of textarea 
works again
            # txt_area['_style'] = "height:150px" # uncomment this and 
 txt_area['_rows'] = 5 doesn't work anymore



Il giorno domenica 2 dicembre 2012 04:26:56 UTC+1, david.waldrop ha scritto:
>
> You are right.  As usual.  Thanks. 
>
>>  
>>>
>>

-- 



Reply via email to