Results 1 to 3 of 3

Thread: Ext.window not hidden correctly in IE

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    17
    Vote Rating
    0
      0  

    Default Ext.window not hidden correctly in IE

    Hello,

    I create a window as follows:

    Code:
                                       var test = new Ext.Window({
                                            id: 'test1',
                                            layout:'fit',
                                            width:800,
                                            height:600,
                                            closeAction:'hide',
                                            plain: true,
                                            title: 'This is my first window',                                        
                                            items: new Ext.Panel({
                                                id: 'testPanel1', 
                                                autoScroll: true,                                            
                                                deferredRender:false,
                                                border:false,
                                                html: 'Hello World'
                                            }),
                                            buttons: [{
                                                text: 'Close',
                                                handler: function(){
                                                    test.hide()
                                                }
                                            }]
                                        });
                                        test.show(this);
    When I press the Close-Button the windo is completely hidden in Firefox, but if I click Close-Button in IE8 I still see the border very weakly of that window. If I mask the whole browser via Ext.getCmp('abc').mask() I see the window as a bright white box.

    What do I have to do to close the window comletely also in IE8? If I use test.destroy() the window is completely closed, but I cannot reopen it.

    Thanks and best regards,

    Dirk

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    12
      0  

    Default

    The problem is with your test.show(this); - remove the 'this' so that it's test.show();

    I'm guessing you copied that code from hello.js or layout.js, where 'this' would have referred to the button (the animateTarget).

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    17
    Vote Rating
    0
      0  

    Default

    Hi fay,

    wow, seems as I was like an open book to you.

    I took the example out of the hello.js example. Now I removed "this" and it works great.

    Thanks a lot and best wishes,

    Dirk

Similar Threads

  1. [INFOREQ] MultiSelect wont work correctly if hidden
    By Markj in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 6 Dec 2010, 10:35 AM
  2. Replies: 1
    Last Post: 16 Aug 2010, 7:36 AM
  3. How to show hidden control correctly?
    By Ex_Soft in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 19 Mar 2010, 5:21 AM
  4. Replies: 2
    Last Post: 9 Jul 2009, 8:05 AM
  5. Replies: 10
    Last Post: 9 Apr 2009, 10:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •