Sergio Ruiz wrote:
> i have noticed this a few times in the past, but right now, i need to
> get this fixed so that my form will fit inside a div..
> 
> i currently have this code:
> 
> <%= text_area @project, :description, :rows => "2", :cols => "20" %>
> 
> which should give me a 20x2 text area...
> 
> unfortunately, i get a huge text area..
> 
> the code that is generated is:
> 
> <textarea cols="20" id="project_description" name="project[description]"
> rows="2"></textarea>

I see nothing wrong with this. I even used Safari's Web Inspecting on 
the very text area I'm typing this response into. The text area size 
updated as expected.

Are you sure you don't have a CSS style-sheet that is overriding your 
rows and cols attributes on your text area?

Also note that Safari (not sure about Chrome) allows the user to resize 
text areas. Even so, Safari will still respect the rows and cols 
attributes as the starting size for text areas.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to