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

Commit cce113b

Browse files
ianjenningsSomeKittens
authored andcommitted
fix: Collapses to minimum size if given, 0px otherwise
1 parent 6be6827 commit cce113b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui-layout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ angular.module('ui.layout', [])
265265
if(!LayoutContainer.isSplitbar(ctrl.containers[i])) {
266266

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

0 commit comments

Comments
 (0)