Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
fix(nesting): resizing a parent pane also triggers a resize in child
Browse files Browse the repository at this point in the history
Implements #90, Fixes #102
  • Loading branch information
SomeKittens committed Sep 12, 2015
1 parent 8660e46 commit 23d8cf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui-layout.js
Expand Up @@ -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();
});

Expand Down

0 comments on commit 23d8cf4

Please sign in to comment.