2012-07-31 75 views
0

問題是我點擊菜單按鈕我看不到窗口彈出,因爲它隱藏在「主要內容」後面。我可以看到這與Firebugs檢查元素工具。Enyo菜單重疊z-index

我嘗試使用z-index的風格,但它似乎並沒有幫助..

是否有任何其他選項或創造性的解決方案來解決這一問題?

 {kind:"FittableColumns", style:"z-index:1;", fit:true, components:[ 
     {kind:"FittableRows", style:"z-index:1;", fit:true, components:[ 
      {content:"Main Content",style:"z-index:1;", fit:true}, 
      {kind: "onyx.Toolbar", style: "height:40px; padding:0px;", components: [ 
       {kind: "onyx.MenuDecorator", onSelect: "itemSelected", components: [ 
        {kind: "onyx.IconButton", src: "assets/menu-icon-bookmark.png"}, 
        {kind: "onyx.Menu",style:"z-index:99999;",components: [ 
         {components: [ 
          {kind: "onyx.IconButton", src: "assets/menu-icon-bookmark.png"}, 
          {content: "Bookmarks"} 
         ]}, 
         {content: "Favorites"}, 
         {classes: "onyx-menu-divider"}, 
         {content: "Recents"}, 
        ]} 
       ]}, 
      ]} 

並且代碼繼續存在,但不在菜單附近的任何地方重疊。

Tkx提前爲解決方案。

回答

1

解決了添加了此,並沒有奇蹟{kind: "onyx.Menu", floating: true, components: [