Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#4921 closed enhancement (wontfix)

Textarea: Be able to specify a minimum height

Reported by: Robert Coup Owned by:
Priority: high Milestone: 1.1
Component: Dijit - Form Version:
Keywords: Cc: alex
Blocked By: Blocking:


While dijit.form.Textarea autosizes, it'd be nice to specify a minimum height for the editable area, and have it resize from that.

You can achieve this in the meantime via css:

#my_textarea IFRAME, #my_textarea DIV {
  min-height: 200px;
.dj_ie6 #my_textarea DIV {
  height: 200px;

Change History (2)

comment:1 Changed 14 years ago by Douglas Hays

Resolution: wontfix
Status: newclosed

I'm not sure anything should be changed for this. We already add style and class specified either in markup or programmatically to the correct nodes via the attributemap. So the following already works on all supported browsers:

var w = new dijit.form.Textarea({
        style: "min-height:200px;_height:200px;",
        value: "test value"
}, "programmaticTextArea");

as does

<style type="text/css">
.minh {
_height: 200px;
<div dojoType="dijit.form.Textarea" id="simple" class="minh">test value</div>

I would rather use css instead of adding yet another attribute that mimics css. Only ie6 needs a css hack and it'll slowly go away.

comment:2 Changed 11 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.