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

  1. #1

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

    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">
            <ext:FormPanel runat="server" ID="Objeto_FormPanel" Border="false"
                ButtonAlign="Left" BodyPadding="10" DefaultButton="btnSave" AnchorHorizontal="100%">
                    <ext:Parameter Name="Anchor" Value="100%" />
                    <ext:Parameter Name="SelectOnFocus" Value="true" Mode="Raw" />
                    <ext:Parameter Name="MsgTarget" Value="side" />
                    <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" />
                    <ext:StatusBar ID="Objeto_StatusBar" runat="server" DefaultText="Complete el formulario">
                            <ext:ValidationStatus ShowText="Form contains errors. (Click here to view details)."
                                ID="Objeto_ValidationStatus" runat="server" FormPanelID="Objeto_FormPanel" ValidIcon="Accept"
                                ErrorIcon="Exclamation" />
            <ext:Button ID="btnSave" runat="server" Text="Guardar" Icon="Disk" FormBind="true">
                    <Click OnEvent="saveData" Before="var valid=#{Objeto_FormPanel}.getForm().isValid(); if (valid) {#{Objeto_StatusBar}.showBusy('Saving form...');} return valid;"
                        <EventMask Msg="Loading..." ShowMask="true" MinDelay="1000" Target="CustomTarget"
                            CustomTarget="={#{Objeto_FormPanel}.getEl()}" />
    The Window is displayed like this:

    Click image for larger version. 

Name:	HeightAutoWindow.png 
Views:	78 
Size:	7.2 KB 
ID:	5855
    Last edited by Daniil; Mar 19, 2013 at 3:11 PM. Reason: [CLOSED]
  2. #2
    Just remove
    BodyStyle="height: auto;" XHeight="undefined"
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Ok, it works fine, Thank you.

Similar Threads

  1. [CLOSED] Auto width/height not working for my layout
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 26, 2012, 10:10 PM
  2. Vertical Auto Height
    By Zdenek in forum 1.x Help
    Replies: 5
    Last Post: Dec 01, 2011, 8:34 PM
  3. How to set auto height for a panel?
    By ganesh.tony in forum 1.x Help
    Replies: 0
    Last Post: Jul 01, 2011, 5:26 AM
  4. [CLOSED] Auto change popop window height and width
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 09, 2011, 8:29 AM
  5. [CLOSED] Auto Height
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 19, 2008, 6:43 AM

Posting Permissions