From 96d5da10077d2645c61891957085f5291b6b77c6 Mon Sep 17 00:00:00 2001 From: Thanh Nguyen Date: Wed, 8 Jan 2014 15:55:35 +0200 Subject: [PATCH] tmp fix for #783: https://github.com/angular-ui/bootstrap/issues/783 --- ui-bootstrap-tpls-0.5.0.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ui-bootstrap-tpls-0.5.0.js b/ui-bootstrap-tpls-0.5.0.js index 1aa9dd49bd..0679c4c3d5 100644 --- a/ui-bootstrap-tpls-0.5.0.js +++ b/ui-bootstrap-tpls-0.5.0.js @@ -2673,10 +2673,14 @@ function($parse, $http, $templateCache, $compile) { if (!scope.$eval(attrs.tabsetTitles)) { elm.remove(); } else { - //now that tabs location has been decided, transclude the tab titles in - tabsetCtrl.$transcludeFn(tabsetCtrl.$scope.$parent, function(node) { - elm.append(node); - }); + // reference: https://github.com/angular-ui/bootstrap/issues/783 + setTimeout(function() { + //now that tabs location has been decided, transclude the tab titles in + tabsetCtrl.$transcludeFn(tabsetCtrl.$scope.$parent, function(node) { + elm.append(node); + }); + scope.$apply(); + },1); } } };