Jun 17, 2011, 12:29 PM
WIndow Height Problem
Hello
I have a problem to give a dynamic to a window size
Why the height I only change it if I put it directly?
Greetings and thank you very much
I have a problem to give a dynamic to a window size
<ext:Window
ID="UploadImage"
runat="server"
Icon="ApplicationFormEdit"
Hidden="true"
Modal="true"
Constrain="true">
<AutoLoad
Url="/Shared/UploadImage/"
Mode="IFrame"
TriggerEvent="show"
ReloadOnEvent="true"
ShowMask="true"
MaskMsg="Loading...">
</AutoLoad>
<Buttons>
<ext:Button ID="Button1" runat="server" Text="Close">
<Listeners>
<Click Handler="#{UploadImage}.hide();" />
</Listeners>
</ext:Button>
</Buttons>
<Listeners>
<BeforeShow Handler="this.setSize({ width: #{anchura}.getValue(), height: 400});" />
</Listeners>
</ext:Window>
this works!!!
<ext:Window
ID="UploadImage"
runat="server"
Icon="ApplicationFormEdit"
Hidden="true"
Modal="true"
Constrain="true">
<AutoLoad
Url="/Shared/UploadImage/"
Mode="IFrame"
TriggerEvent="show"
ReloadOnEvent="true"
ShowMask="true"
MaskMsg="Loading...">
</AutoLoad>
<Buttons>
<ext:Button ID="Button1" runat="server" Text="Close">
<Listeners>
<Click Handler="#{UploadImage}.hide();" />
</Listeners>
</ext:Button>
</Buttons>
<Listeners>
<BeforeShow Handler="this.setSize({ width: #{anchura}.getValue(), height: #{anchura}.getValue()});" />
</Listeners>
</ext:Window>
This does not work :( (It is assumed that the height would have to be the same size as the width)Why the height I only change it if I put it directly?
Greetings and thank you very much