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