Results 1 to 2 of 2

Thread: Check if another panel or window is on top of an existing panel

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    64

    Default Check if another panel or window is on top of an existing panel

    Hi,
    I have a panel, then on clicking some button i open a new window which covers the entire existing panel , now i want to perform some operations which depend on whether the new window is on top of existing panel or not that is :
    If its just panel perform operation A
    If there is anything like a new window / new panel on existing background panel perform operation B

    How will bottom background panel know that there is a new panel / window on top of it ?


    How do i do ?

    Thanks in Advance

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    Can you just check for the existence of that Window and see if it's visible?

    Code:
    console.log(win && win.isVisible());

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
  •