Results 1 to 2 of 2

Thread: how to bring a window in front of GoogleEarth plugin?

  1. #1

    Question how to bring a window in front of GoogleEarth plugin?

    Hello

    I create GE instance by using method: google.earth.createInstance(<panelbody>, <callback>, {});
    Later on, the user can click on a button, which generate a new window (using JS Ext toolkit)

    But than, a problem pops-up: the generated window is always behind the <panelbody> which contains googleEarth plugin
    Tried all the tricks, founds in forums, that should bring the window visible to the user: show(), toFront(), setting windowMgr.xseeed

    Notices that even if the <callback> is empty the <panelbody> still "hide" the generated window. Therefore, I suspect the createInstance() setup the <panelbody> contexts to be un-hidden - but don't know how to change it.

    Any solutions ?

    Thanks in advance
    sivan

  2. #2
    Ext JS Premium Member
    Join Date
    May 2007
    Location
    Aalborg, Denmark
    Posts
    16

    Default

    You need to use a shim.

    Because the google earth plugin is a windowed npapi/activex browser plugin, it isnt included in the browsers normal z order, instead it will always be on top of the other html elements.
    There is a workaround though, by using an iframe shim on your new ext window it will be visible through your google earth plugin.

    Luckily ext has built in supports for shims by setting Ext.useShims = true and shim: true in your window configuration object.

Similar Threads

  1. Bring Window To Front on GXT
    By telosjamel in forum Sencha GXT Q&A
    Replies: 2
    Last Post: 9 Sep 2010, 3:49 PM
  2. GoogleEarth Plugin destroyed on window collapse?
    By mavrikjc in forum Ext 2.x: Help & Discussion
    Replies: 15
    Last Post: 19 Nov 2009, 7:51 AM
  3. Bring window on front?
    By anton_ds in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 30 Aug 2009, 11:56 PM
  4. Clicking in HtmlEditor does not bring window to front
    By dbassett74 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 24 Jun 2009, 12:27 PM
  5. How should I bring window front?
    By apaa in forum Sencha Ext JS Q&A
    Replies: 8
    Last Post: 15 Apr 2008, 1:49 AM

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
  •