docs/Roo.docs.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 14 Jan 2019 08:06:18 +0000 (16:06 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 14 Jan 2019 08:06:18 +0000 (16:06 +0800)
docs/Roo.docs.js

docs/Roo.docs.bjs
docs/Roo.docs.js

index 99e6043..be24095 100644 (file)
@@ -84,7 +84,7 @@
     },
     {
      "listeners" : {
-      "beforetoggle" : "function (_self)\n{\n    //_this.navGroup.autoExpand(); \n    \n    \n    this.el.select('.navbar-collapse',true).first().setHeight(innerHeight-50);\n    \n    \n    if(this.el.select('.navbar-collapse',true).first().hasClass('in')){\n        _this.navHeaderBar.mask.hide();\n        return;\n    }\n}",
+      "beforetoggle" : "function (_self)\n{\n    //_this.navGroup.autoExpand(); \n    \n    (function() {\n        this.el.select('.navbar-collapse',true).first().setHeight(innerHeight-50);\n    }).defer(100,this);\n    \n    \n    if(this.el.select('.navbar-collapse',true).first().hasClass('in')){\n        _this.navHeaderBar.mask.hide();\n        return;\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",
index 815f2bc..5f8c679 100644 (file)
@@ -240,8 +240,9 @@ Roo.docs = new Roo.XComponent({
        {
            //_this.navGroup.autoExpand(); 
            
-           
-           this.el.select('.navbar-collapse',true).first().setHeight(innerHeight-50);
+           (function() {
+               this.el.select('.navbar-collapse',true).first().setHeight(innerHeight-50);
+           }).defer(100,this);
            
            
            if(this.el.select('.navbar-collapse',true).first().hasClass('in')){