Opened 9 years ago
Closed 9 years ago
#15245 closed defect (wontfix)
dijit.form.Textarea + SimpleTextarea and cols attribute = incorrect behaviour
Reported by: | Owned by: | Douglas Hays | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Dijit - Form | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When I use cols attribute, each browser accepts another number of characters per row / line.
<textarea cols="10" name="ta" data-dojo-type="dijit.form.Textarea">0123456789012</textarea> <textarea cols="20" name="ta" data-dojo-type="dijit.form.Textarea">01234567890123456789012</textarea>
<textarea cols="10" name="ta" data-dojo-type="dijit.form.SimpleTextarea?">0123456789012</textarea> <textarea cols="20" name="ta" data-dojo-type="dijit.form.SimpleTextarea?">01234567890123456789012</textarea>
Is it bug or bad browser behaviour?
Note: See
TracTickets for help on using
tickets.
This is a browser "feature" dependent on font-size. Browsers size the textarea based on a standard font-size like monospace and multiply this by the # of cols, and then fit as many characters as possible given the actual font-size.