From 23d8cf41f919b6e72e2ca7c534340a71587cc42c Mon Sep 17 00:00:00 2001 From: SomeKittens Date: Sat, 12 Sep 2015 09:22:43 -0700 Subject: [PATCH] fix(nesting): resizing a parent pane also triggers a resize in child Implements #90, Fixes #102 --- src/ui-layout.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui-layout.js b/src/ui-layout.js index 5862a05..ece1137 100644 --- a/src/ui-layout.js +++ b/src/ui-layout.js @@ -550,7 +550,9 @@ angular.module('ui.layout', []) restrict: 'AE', controller: 'uiLayoutCtrl', link: function(scope, element, attrs, ctrl) { - scope.$watch(element[0][ctrl.sizeProperties.offsetSize], function() { + scope.$watch(function () { + return element[0][ctrl.sizeProperties.offsetSize]; + }, function() { ctrl.updateDisplay(); });