From d6d69292c8ef7f0b5b9ec6b27fdd520b95d69425 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 24 Jan 2019 17:28:15 +0800 Subject: [PATCH] Roo/bootstrap/NavGroup.js --- Roo/bootstrap/NavGroup.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Roo/bootstrap/NavGroup.js b/Roo/bootstrap/NavGroup.js index ac8fdfb19a..b231b3aae1 100644 --- a/Roo/bootstrap/NavGroup.js +++ b/Roo/bootstrap/NavGroup.js @@ -62,8 +62,12 @@ Roo.extend(Roo.bootstrap.NavGroup, Roo.bootstrap.Component, { cfg.cls += ' nav-' + this.type; } else { // trying to remove so header bar can right align top? - //cfg.cls += ' navbar-nav'; + if (this.parent() && this.parent().xtype != 'NavHeaderbar') { + // do not use on header bar... + cfg.cls += ' navbar-nav'; + } } + } else { if (['tabs','pills'].indexOf(this.type) != -1) { cfg.cls += ' nav-' + this.type -- 2.39.2