Bugfix in HeightCalculator.js

This commit is contained in:
VakarisZ 2020-07-24 17:20:24 +03:00
parent b366d12c99
commit 49825d460b
1 changed files with 1 additions and 1 deletions

View File

@ -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