1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    eTouchard is on a distinguished road

      0  

    Default Unanswered: FramePanel, Menus and ie plugin

    Unanswered: FramePanel, Menus and ie plugin


    Hi

    I have problem for displaying Menus from a toolbar. My page displays a toolbar on the top and in the middle, it display a pdf document in a NamedFrame. When i click on a button of my toolbar, a menu is trigrered and unfortunatly is displayed under the pdf. This is also the case for applets

    I've seen the FramePanel class in 2.x, which
    "Displays an iframe under a element to stop IE bleed through and applet related issues. "

    But i did not know how to use it. It also seems to have dsapeared in 3.x.

    My question is simple, is there a way either in 2.x and 3.x to have menus on top of ie plugins ?

    Thanks

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,640
    Answers
    107
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    The Component.shim property is used to enable adding an iframe shim to a component - its still there, but it isn't as exposed as it used to be. GXT checks if the current browser needs shims for things (only some browsers do) via GXT.isUseShims(). By default this is true for IE6, and old FF builds on a mac, and false otherwise. You can set it to true for other browsers via GXT.setUseShims(boolean).

    When i click on a button of my toolbar, a menu is trigrered and unfortunatly is displayed under the pdf.
    The Menu needs shim set to true, but the menu constructor already sets that to true - is this not working correctly?

    To debug this, check out Component.onAfterFirstAttach():
    Code:
      /**
       * Called immediately after the first time the widget becomes attached to the
       * browser's document only the first time.
       */
      protected void onAfterFirstAttach() {
        if (shadow || (shim && GXT.isUseShims())) {
          layer = new Layer(getElement());
          if (shadow) {
            layer.enableShadow();
            layer.setShadowPosition(shadowPosition);
          }
          if (shim && GXT.isUseShims()) {
            layer.enableShim();
          }
        }
    Set a breakpoint on that if block just before you see the menu and make sure it steps into there correctly, and that the shim draws.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar