[CLOSED] 0.5.4 - ext:window not shown in Firefox

  1. #1

    [CLOSED] 0.5.4 - ext:window not shown in Firefox

    Hi Geoff,

    is this maybe a bug or am I doing something wrong, please see the code below:

    <form id="form1" runat="server">
        <ext:ScriptManager ID="ScriptManager1" Theme="Default" runat="server"></ext:ScriptManager>
            <ext:Window ID="Window1"  runat="server" Maximizable="true" Closable="false" Collapsible="true" Icon="Application" Title="Title">
                <Maximize Handler="function (el){ var view = Ext.getBody().getViewSize(); el.setSize(view.width, view.height); }" />
    it works fine in IE but in Firefox I can only see the text 'Hello', then by removing Listeners all works fine also in FF.



  2. #2

    RE: [CLOSED] 0.5.4 - ext:window not shown in Firefox


    I was wrong (or the code I saw in some posts) sorry, I tried the fallawing and it works:

                <Maximize Handler="var view = Ext.getBody().getViewSize(); el.setSize(view.width, view.height); " />

  3. #3

    RE: [CLOSED] 0.5.4 - ext:window not shown in Firefox

    Hi matteo,

    Yes, with 0.5+ the value of the .Handler property does not need to be wrapped in a function(){} template. 

    If you want to have complete control over the format/syntax of the function, you can set the .Fn property which will render exactly what you supply. The .Fn property is also very useful if you want to define the function in your own custom script and just provide a pointer to the function.


    // Set the function name
    // then define the doSomething function elsewhere
    var doSomthing (el) {
    alert("doSomething here");
    In your original example, if you change the .Handler property to .Fn, I think it should work. 

    Hope this helps.

    Geoffrey McGill
    Founder & CEO
  4. #4

    RE: [CLOSED] 0.5.4 - ext:window not shown in Firefox

    Thanks Geoff, all clear!

Similar Threads

  1. PDF is not shown in a Panel with Firefox
    By pfss in forum 1.x Help
    Replies: 1
    Last Post: Jun 25, 2012, 12:52 PM
  2. Replies: 2
    Last Post: Oct 11, 2011, 1:15 PM
  3. [CLOSED] Preventing a Desktop Window from being shown in the taskbar
    By r_honey in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 04, 2011, 7:46 PM
  4. Replies: 2
    Last Post: Feb 03, 2010, 10:18 AM
  5. Replies: 0
    Last Post: Jan 23, 2010, 4:15 PM

Posting Permissions