Skip to content
Snippets Groups Projects
Commit 530c1096 authored by Julia Friesel's avatar Julia Friesel
Browse files

Fix bottom scale margin

parent 8a6f943e
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,9 @@ export function normalizeToScale(temp, columnHeight) { ...@@ -60,7 +60,9 @@ export function normalizeToScale(temp, columnHeight) {
function getAbsoluteValue(relative, columnHeight) { function getAbsoluteValue(relative, columnHeight) {
// we add some height to have some breathing room // we add some height to have some breathing room
const verticalPadding = columnHeight * config.temperatureScale.verticalPadding const verticalPadding = columnHeight * config.temperatureScale.verticalPadding
const scaleHeight = columnHeight - verticalPadding const scaleHeight = columnHeight - 2 * verticalPadding
console.log(scaleHeight)
console.log(columnHeight)
return scaleHeight * relative + verticalPadding return scaleHeight * relative + verticalPadding
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment