Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#9190 closed defect (invalid)

TextArea: doesn't full initialize when hidden

Reported by: remmons Owned by: Douglas Hays
Priority: high Milestone: tbd
Component: Dijit - Form Version: 1.3.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

1) unhide a div layer that contains a dijit.form.Textarea

2) The height of the textarea will be approximately 67pixels tall. When you focus on the textarea, and then click off, it will shrink down to approximately 21 pixels (the intended size)

Tested in FF 3.0.9 & IE7

	<script type="text/javascript"> </script>
	<link type="text/css" rel="stylesheet" media="all" href="client_side/dojo/dijit/themes/tundra/tundra.css">
	<link type="text/css" rel="stylesheet" media="all" href="client_side/dojo_customization.css">
    <link type="text/css" rel="stylesheet" media="all" href="client_side/styles.css">
	<script type="text/javascript" src="client_side/dojo/dojo/dojo.js" djConfig="parseOnLoad: false"></script>
	<script type="text/javascript" src="client_side/dojo/dojo/mydojo.js" djConfig="parseOnLoad: false"></script>

	<script type="text/javascript" src="client_side/scripts.js"></script>

<body class="tundra">
    <h3>Visible Textarea</h3>
    <textarea dojoType="dijit.form.Textarea" style="width:400px;"></textarea>
    <h3>Hidden Textarea</h3>
    <div id="hiddenArea" style="display:none;">

    	<textarea dojoType="dijit.form.Textarea" style="width:400px;"></textarea>
    <button onclick="dojo.byId('hiddenArea').style.display = 'block';">Show Hidden Area</button>

Change History (4)

comment:1 Changed 13 years ago by bill

Description: modified (diff)
Owner: set to Douglas Hays
Summary: dijit.form.Textarea component doesn't full initialize when hiddenTextArea: doesn't full initialize when hidden

comment:2 Changed 13 years ago by Douglas Hays

Resolution: invalid
Status: newclosed

widget.resize() should be called after a style change as documented in the api doc.

comment:3 Changed 13 years ago by bill

BTW I think that in 1.3, resize() will be called automatically if the TextArea is inside of a ContentPane that gets shown (as for example a Dialog or a pane of a TabContainer).

comment:4 Changed 11 years ago by bill

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