Jan 26, 2010, 12:06 PM
[CLOSED] [1.0] Window/form resize and buttonalign issue
It's me again ;-)
Code:
Thanks for the help.
Code:
<ext:Window ID="windowEdit" AutoShow="false" Modal="true" Hidden="true" runat="server" Icon="ApplicationEdit" Width="440" AutoHeight="true" BodyStyle="padding:5px;" Title="Edit Details" >
<Items>
<ext:FormPanel ID="formpanelEdit" runat="server" ButtonAlign="Right" Layout="Form" Border="true" Padding="0" AutoHeight="true">
<Items>
<ext:TabPanel runat="server" Border=false>
<Items>
<ext:Panel runat="server" ID="memberEditPanelGeneral" Title="General" Padding="5" AutoHeight="true" Layout="Form">
<Items>
<ext:Hidden runat="server" ID="GUID"></ext:Hidden>
<ext:TextField runat="server" ID="FirstName" FieldLabel="Firstname"></ext:TextField>
<ext:TextField runat="server" ID="LastName" FieldLabel="Lastname"></ext:TextField>
</Items>
</ext:Panel>
<ext:Panel runat="server" ID="memberEditPanelContent" Title="Content" Padding="5" AutoHeight="true" Layout="Form">
<Items>
<ext:Hidden runat="server" ID="Hidden1"></ext:Hidden>
</Items>
</ext:Panel>
</Items>
<Listeners>
<TabChange Handler="#{windowEdit}.syncSize();" />
</Listeners>
</ext:TabPanel>
</Items>
<Buttons>
<ext:Button ID="buttonSaveButton" runat="server" Text="Save" Icon="Disk" Type="Submit">
</ext:Button>
<ext:Button ID="buttonCancelButton" runat="server" Text="Cancel" Icon="Cancel">
</ext:Button>
</Buttons>
</ext:FormPanel>
</Items>
<Listeners>
<Show Handler="#{FirstName}.focus();" Delay="40" />
</Listeners>
</ext:Window>
When I resize the window, everything resizes well, but the buttons in the buttons collection from the formpanel remain on the same place, allthough buttonalign=right is stated.Thanks for the help.