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

Commit 06ffdf9

Browse files
petrsimonSomeKittens
authored andcommitted
feat: Enable hiding splitbar
Setting @dividerSize=0 will hide this splitbar and prevent from resizing the surrounding container. This is a desirable feature to allow containers managed by the layout, while hiding the splitbar.
1 parent 0d2a550 commit 06ffdf9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ A fake [flex-direction property](http://www.w3.org/TR/css3-flexbox/#flex-directi
8484
Type: `Integer`
8585
Default: `10`
8686

87-
The size in pixels that you want the divider/splitbar to be.
87+
The size in pixels that you want the divider/splitbar to be. Set to `0` to hide the splitbar, which in turn prevents user resizing the surrounding containers.
8888

8989
### disableToggle
9090

src/ui-layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ angular.module('ui.layout', [])
4141
opts.sizes = opts.sizes || [];
4242
opts.maxSizes = opts.maxSizes || [];
4343
opts.minSizes = opts.minSizes || [];
44-
opts.dividerSize = opts.dividerSize || 10; //default divider size set to 10
44+
opts.dividerSize = opts.dividerSize === undefined ? 10 : opts.dividerSize;
4545
opts.collapsed = opts.collapsed || [];
4646
ctrl.opts = opts;
4747

0 commit comments

Comments
 (0)