From: Alan Knowles Date: Thu, 10 Jun 2021 08:07:28 +0000 (+0800) Subject: fix doc menu X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=8946284bad10596673ce59afe8ef1ea49ba0b790 fix doc menu --- 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); diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 964ce12121..e9febac739 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -3589,6 +3589,13 @@ Roo.bootstrap.MenuMgr = function(){ 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); diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index ec84a5a281..cf57021b79 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -152,7 +152,7 @@ i