From af61f70a6c4bd2948590960ab8d132d46e6f14ab Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 15 Jan 2019 11:20:47 +0800 Subject: [PATCH] docs/Roo.docs.bjs docs/Roo.docs.js --- docs/Roo.docs.bjs | 1 + docs/Roo.docs.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docs/Roo.docs.bjs b/docs/Roo.docs.bjs index 6e1043a5c6..f75e1b69c2 100644 --- a/docs/Roo.docs.bjs +++ b/docs/Roo.docs.bjs @@ -84,6 +84,7 @@ }, { "listeners" : { + "beforetoggle" : "function (_self)\n{\n // _this.mobileNavGroup.autoExpand(); \n \n \n}", "render" : "function (_self)\n{\n \n _this.navHeaderBar = this;\n return;\n /*\n var body = Roo.select('body', true).first();\n \n var mark = {\n tag: \"div\",\n cls:\"x-dlg-mask\"\n };\n \n this.mask = Roo.DomHelper.append(body, mark, true);\n \n var size = body.getSize();\n this.mask.setSize(size.width, size.height);\n \n this.mask.setStyle('z-index', '1029');\n \n this.mask.enableDisplayMode(\"block\");\n this.mask.hide();\n \n this.mask.on('click', function(){\n \n this.el.select('.navbar-collapse',true).removeClass('in'); \n this.mask.hide();\n \n }, this);\n \n \n var maxHeight = Roo.lib.Dom.getViewHeight() - this.el.select('.navbar-header', true).first().getHeight();\n \n this.el.select('.navbar-collapse', true).first().setStyle('max-height', maxHeight);\n */\n}" }, "String cls" : "mobile-header-menu", diff --git a/docs/Roo.docs.js b/docs/Roo.docs.js index eb8af36698..5efeb607e7 100644 --- a/docs/Roo.docs.js +++ b/docs/Roo.docs.js @@ -236,6 +236,12 @@ Roo.docs = new Roo.XComponent({ position : 'fixed-top', style : '', listeners : { + beforetoggle : function (_self) + { + // _this.mobileNavGroup.autoExpand(); + + + }, render : function (_self) { -- 2.39.2