This repository was archived by the owner on Sep 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ angular.module('ui.layout', [])
125
125
opts . sizes = opts . sizes || [ ] ;
126
126
opts . maxSizes = opts . maxSizes || [ ] ;
127
127
opts . minSizes = opts . minSizes || [ ] ;
128
+ opts . dividerSize = opts . dividerSize || '10px' ;
128
129
129
130
// Preallocate the array size
130
131
opts . sizes . length = _child_len ;
@@ -148,6 +149,7 @@ angular.module('ui.layout', [])
148
149
// Initialise the layout with equal sizes.
149
150
var flowProperty = ( isUsingColumnFlow ? 'left' : 'top' ) ;
150
151
var oppositeFlowProperty = ( isUsingColumnFlow ? 'right' : 'bottom' ) ;
152
+ var sizeProperty = ( isUsingColumnFlow ? 'width' : 'height' ) ;
151
153
_position = 0 ;
152
154
for ( _i = 0 ; _i < _child_len ; ++ _i ) {
153
155
var area = angular . element ( _childens [ _i ] )
@@ -159,6 +161,7 @@ angular.module('ui.layout', [])
159
161
if ( _i < _child_len - 1 ) {
160
162
// Add a split bar
161
163
var bar = angular . element ( splitBarElem_htmlTemplate ) . css ( flowProperty , _position + '%' ) ;
164
+ bar . css ( sizeProperty , opts . dividerSize ) ;
162
165
area . after ( bar ) ;
163
166
}
164
167
}
You can’t perform that action at this time.
0 commit comments