X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fbootstrap%2FMenu.js;fp=Roo%2Fbootstrap%2FMenu.js;h=b0f64f4ae9fcb131e1e9b397843ef0ed23e45ba7;hb=8946284bad10596673ce59afe8ef1ea49ba0b790;hp=d396fa3ce1db9355050c661e49fcf2c28f33f2c0;hpb=49ac7ebc6f41da694248427f2dce251483c5e650;p=roojs1 diff --git a/Roo/bootstrap/Menu.js b/Roo/bootstrap/Menu.js index d396fa3ce1..b0f64f4ae9 100644 --- a/Roo/bootstrap/Menu.js +++ b/Roo/bootstrap/Menu.js @@ -23,6 +23,13 @@ Roo.bootstrap.Menu = function(config){ + + if (config.type == 'treeview') { + // normally menu's are drawn attached to the document to handle layering etc.. + // however treeview (used by the docs menu is drawn into the parent element) + this.container_method = 'getChildContainer'; + } + Roo.bootstrap.Menu.superclass.constructor.call(this, config); if (this.registerMenu && this.type != 'treeview') { Roo.bootstrap.MenuMgr.register(this);