diff --git a/Website/Composite/scripts/source/top/ui/bindings/tabboxes/TabPanelBinding.js b/Website/Composite/scripts/source/top/ui/bindings/tabboxes/TabPanelBinding.js index f10c90e9c3..318790026d 100644 --- a/Website/Composite/scripts/source/top/ui/bindings/tabboxes/TabPanelBinding.js +++ b/Website/Composite/scripts/source/top/ui/bindings/tabboxes/TabPanelBinding.js @@ -111,7 +111,12 @@ TabPanelBinding.prototype.unselect = function () { */ TabPanelBinding.prototype._invokeManagedRecursiveFlex = function () { - this.reflex ( true ); + if (this.isAttached == true) { + this.reflex(true); + } else { + var tabpanels = UserInterface.getBinding(this.bindingElement.parentNode); + tabpanels.reflex(); + } /* * There's an issue here with lazy panels waking up. diff --git a/Website/Composite/styles/default/tabboxes.less b/Website/Composite/styles/default/tabboxes.less index 95d8614a7a..3d9634a0e9 100644 --- a/Website/Composite/styles/default/tabboxes.less +++ b/Website/Composite/styles/default/tabboxes.less @@ -2,8 +2,10 @@ ui|tabbox { display: block; overflow: hidden; - ui|tabbox { // usage: Edit Data Type -> Fields -> Tabs - padding-top: 39px; + ui|tabbox.tabsontop { // usage: Edit Data Type -> Fields -> Tabs + ui|tabs{ + padding-top: 39px; + } } }