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

Commit 65e3ec6

Browse files
committed
Fixed sizing issue when flow was set to 'row'
1 parent f64d725 commit 65e3ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui-layout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ angular.module('ui.layout', [])
235235
// ensure the min size isn't smaller than the divider size
236236
if(_dividerSize && _cache.previousElement.min < _dividerSize) _cache.previousElement.min = _dividerSize;
237237
} else {
238-
_cache.previousElement.min = _dividerSize
238+
_cache.previousElement.min = _dividerSize;
239239
}
240240

241241
if( _cache.previousElement.max) {
@@ -282,7 +282,7 @@ angular.module('ui.layout', [])
282282
if(!isNaN(_cache.previousElement.max) && the_pos > (previousElementValue + _cache.previousElement.max)) the_pos = (previousElementValue + _cache.previousElement.max);
283283

284284
// Keep the bar from going past the next elements max/min sizes
285-
var nextElementValue = (_cache.nextElement[flowProperty] + _cache.nextElement.width) / _cache.layoutSize * 100;
285+
var nextElementValue = (_cache.nextElement[flowProperty] + _cache.nextElement[sizeProperty]) / _cache.layoutSize * 100;
286286
var nextElementMinValue = nextElementValue - _cache.nextElement.min;
287287
var nextElementMaxValue = nextElementValue - _cache.nextElement.max;
288288
if(!isNaN(_cache.nextElement.max) && the_pos < nextElementMaxValue) the_pos = nextElementMaxValue;

0 commit comments

Comments
 (0)