Bugfix in HeightCalculator.js
This commit is contained in:
parent
b366d12c99
commit
49825d460b
|
@ -6,7 +6,7 @@ export function getComponentHeight(subcomponentCount,
|
||||||
subcomponentHeight = defaultSubcomponentHeight,
|
subcomponentHeight = defaultSubcomponentHeight,
|
||||||
minHeight = defaultMinHeight,
|
minHeight = defaultMinHeight,
|
||||||
maxHeight = defaultMaxHeight) {
|
maxHeight = defaultMaxHeight) {
|
||||||
let height = defaultMinHeight + (subcomponentHeight*subcomponentCount);
|
let height = minHeight + (subcomponentHeight*subcomponentCount);
|
||||||
if (height > maxHeight)
|
if (height > maxHeight)
|
||||||
height = maxHeight
|
height = maxHeight
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue