Results 1 to 2 of 2

Thread: hide extjs menu when clicking in different iframe

  1. #1
    Sencha User
    Join Date
    Mar 2014
    Posts
    1

    Default hide extjs menu when clicking in different iframe

    I have an extjs menu in one iframe, and when i click outside this iframe the menu does not collapse, like it does when I click away in the same iframe the menu belongs to.
    Do you guys have an idea on how to solve this issue? This actually happens to any component that should hide when it loses focus. So, I'd love to see a more general solution, if you guys happen to know.
    Thanks!
    P.S.: I'm using version 3.2

  2. #2

    Default

    I am thinking this will work for you, but it will change the behavior of the menu a little bit. As soon as your mouse leaves the menu, the menu will close.

    Code:
     
    onRender: function(ct, position){ 
    GLOBAL.yourMenu.superclass.onRender.call(this, ct, position);        
    this.mon(this, 'mouseout', this.closeMenu, this);//this being your menu
    
    },
    
    
    closeMenu: function{        this.hideMenu();//ext js function},

Tags for this Thread

Posting Permissions

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