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

Commit e956cb0

Browse files
StephaneAlieSomeKittens
authored andcommitted
fix: Remove all size options along with the container.
closes #150
1 parent ecb074d commit e956cb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ui-layout.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ angular.module('ui.layout', [])
395395
var newIndex = ctrl.containers.indexOf(container);
396396
if(newIndex >= 0) {
397397
ctrl.containers.splice(newIndex, 1);
398+
ctrl.opts.maxSizes.splice(newIndex, 1);
399+
ctrl.opts.minSizes.splice(newIndex, 1);
400+
ctrl.opts.sizes.splice(newIndex, 1);
398401
}
399402
ctrl.calculate();
400403
} else {

0 commit comments

Comments
 (0)