Apr 02, 2012, 5:36 PM
[CLOSED] TextArea Height Issue
I, recently, had a need to convert an Ext.Net TextField element to an Ext.Net TextArea element. The problem is that the container in which the element lives has a set height and the TextArea extends past the container's boundaries. I have tried applying several attributes to the element but none seem to work. It appears that there is a bug that causes the TextArea to "collapse" to about 3px when applying any attributes affecting height (Height, MaxHeight, BoxMaxHeight, etc.). My guess is that this is an issue when nesting the TextArea within a specific set of elements.
Markup (modified for brevity)
Markup (modified for brevity)
...
<ext:Viewport ID="viewport" runat="server" MonitorResize="true" Layout="Fit">
<Content>
<ext:BorderLayout ID="BorderLayout1" runat="server">
<North Split="false">
<ext:Panel ID="Panel3" runat="server" Height="50" Layout="Fit" MonitorResize="true" Border="false">
<Items>
<ext:HBoxLayout ID="HBoxLayout2" runat="server" Pack="Center" OnLoad="ExtraControlsPanel_Load">
<BoxItems>
<ext:BoxItem>
<ext:TextArea ID="extraTextField" runat="server" FieldLabel="Variable" Visible="false" ForceSelection="true" Editable="false" IDMode="Static" Width="250" LabelWidth="50" LabelPad="15" LabelAlign="Right">
</ext:TextArea>
</ext:BoxItem>
</BoxItems>
</ext:HBoxLayout>
</Items>
</ext:Panel>
</North>
</ext:BorderLayout>
</Content>
</ext:Viewport>
...
As I mentioned: if a "height" attribute is applied to the TextArea (regardless of the value), the element is "collapsed" to about 3px when rendered (screenshots attached). Thank you in advance.
Last edited by Daniil; Apr 09, 2012 at 7:25 PM.
Reason: [CLOSED]