Skip to content

Commit

Permalink
fix: Collapses to minimum size if given, 0px otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings authored and SomeKittens committed Jan 20, 2016
1 parent 6be6827 commit cce113b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ angular.module('ui.layout', [])
if(!LayoutContainer.isSplitbar(ctrl.containers[i])) {

c = ctrl.containers[i];
opts.sizes[i] = c.isCentral ? 'auto' : c.collapsed ? '0px' : optionValue(c.uncollapsedSize) || 'auto';
opts.sizes[i] = c.isCentral ? 'auto' : c.collapsed ? (optionValue(c.minSize) || '0px') : optionValue(c.uncollapsedSize) || 'auto';
opts.minSizes[i] = optionValue(c.minSize);
opts.maxSizes[i] = optionValue(c.maxSize);

Expand Down

0 comments on commit cce113b

Please sign in to comment.