PDA

View Full Version : [CLOSED] Window Height: Auto not working on Ext.Net 2.1



FVNoel
Mar 19, 2013, 2:10 PM
Hello, we are trying to set auto height on a window, and back in the day, we had a similar issue that got fixed on Ext.Net 2.0, however, in Ext.Net 2.1 it doesn't seem to work (or maybe I'm doing something wrong?)

Here's the code for this case:



<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="UsersFormControl.ascx.vb" Inherits="JSSR.Presentation.Intranet.UsersFormControl" %>


<ext:Hidden ID="Objeto_Id" runat="server" />
<ext:Window ID="Objeto_Window" runat="server" Icon="BuildingEdit" Title="User" Resizable="false"
Width="500" Modal="true" Hidden="true" Collapsible="false" Layout="AnchorLayout" BodyStyle="height: auto;" XHeight="undefined">
<Items>
<ext:FormPanel runat="server" ID="Objeto_FormPanel" Border="false"
ButtonAlign="Left" BodyPadding="10" DefaultButton="btnSave" AnchorHorizontal="100%">
<Defaults>
<ext:Parameter Name="Anchor" Value="100%" />
<ext:Parameter Name="SelectOnFocus" Value="true" Mode="Raw" />
<ext:Parameter Name="MsgTarget" Value="side" />
</Defaults>
<Items>
<ext:TextField runat="server" ID="txtUserName" FieldLabel="Username" AllowBlank="false" />
<ext:TextField runat="server" ID="txtPassword" FieldLabel="Password" AllowBlank="false" />
<ext:TextField runat="server" ID="txtFirstName" FieldLabel="First Name" AllowBlank="false" />
<ext:TextField runat="server" ID="txtLastName" FieldLabel="Last Name" AllowBlank="false" />
<ext:TextField runat="server" ID="txtEmail" FieldLabel="Email" AllowBlank="false" />
<ext:CheckboxGroup runat="server" ID="cgpRoles" FieldLabel="Roles" AllowBlank="false" ColumnsNumber="2" Vertical="true" />
<ext:Checkbox runat="server" ID="chkActive" FieldLabel="Active" />
</Items>
<BottomBar>
<ext:StatusBar ID="Objeto_StatusBar" runat="server" DefaultText="Complete el formulario">
<Plugins>
<ext:ValidationStatus ShowText="Form contains errors. (Click here to view details)."
ID="Objeto_ValidationStatus" runat="server" FormPanelID="Objeto_FormPanel" ValidIcon="Accept"
ErrorIcon="Exclamation" />
</Plugins>
</ext:StatusBar>
</BottomBar>
</ext:FormPanel>
</Items>
<Buttons>
<ext:Button ID="btnSave" runat="server" Text="Guardar" Icon="Disk" FormBind="true">
<DirectEvents>
<Click OnEvent="saveData" Before="var valid=#{Objeto_FormPanel}.getForm().isValid(); if (valid) {#{Objeto_StatusBar}.showBusy('Saving form...');} return valid;"
IsUpload="true">
<EventMask Msg="Loading..." ShowMask="true" MinDelay="1000" Target="CustomTarget"
CustomTarget="={#{Objeto_FormPanel}.getEl()}" />
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:Window>


The Window is displayed like this:

5855

Vladimir
Mar 19, 2013, 2:15 PM
Just remove


BodyStyle="height: auto;" XHeight="undefined"

FVNoel
Mar 19, 2013, 2:34 PM
Ok, it works fine, Thank you.