From 49825d460b9c07188de001ff2e783d0fe2dedd34 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Fri, 24 Jul 2020 17:20:24 +0300 Subject: [PATCH] Bugfix in HeightCalculator.js --- .../ui/src/components/ui-components/utils/HeightCalculator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/ui/src/components/ui-components/utils/HeightCalculator.js b/monkey/monkey_island/cc/ui/src/components/ui-components/utils/HeightCalculator.js index 1dcd47516..65a4fa178 100644 --- a/monkey/monkey_island/cc/ui/src/components/ui-components/utils/HeightCalculator.js +++ b/monkey/monkey_island/cc/ui/src/components/ui-components/utils/HeightCalculator.js @@ -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