问题是我单击菜单按钮我看不到窗口弹出窗口,因为它隐藏在“主要内容”后面。我可以通过Firebugs检查元素工具看到这一点。
我尝试使用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提前寻求解决方案。
答案 0 :(得分:1)
解决了这个,并创造了奇迹{kind: "onyx.Menu", floating: true, components: [