diff --git a/apps/ohmcalc/ChangeLog b/apps/ohmcalc/ChangeLog index af752b896..625982edd 100644 --- a/apps/ohmcalc/ChangeLog +++ b/apps/ohmcalc/ChangeLog @@ -1,3 +1,4 @@ 0.01: New App! 0.02: New Results menu item to show the formula and values used. 0.03: Adds haptics to Input screen and long press "C" to go back. +0.04: Fix font size not resetting on subsequent values in results screen diff --git a/apps/ohmcalc/app.js b/apps/ohmcalc/app.js index aa470401c..5ef30aaa5 100644 --- a/apps/ohmcalc/app.js +++ b/apps/ohmcalc/app.js @@ -291,13 +291,11 @@ function calculateValue(calculatedVariable, variableValues) { function drawResultScreen(result) { let drawPage = function() { clearScreen(); - let fontSize = 30; // Initial font size - let lineSpacing = 15; // Space between lines - // Define the vertical positions of the titles let titlePositions = [10, 72, 132]; - + let lineSpacing = 15; // Space between lines for (let i = 0; i < result.result.length; i++) { + let fontSize = 30; // Initial font size let currentResult = result.result[i]; let resultTitle = currentResult[0]; let resultValue = currentResult[1]; diff --git a/apps/ohmcalc/metadata.json b/apps/ohmcalc/metadata.json index de81ec6d7..252ece421 100644 --- a/apps/ohmcalc/metadata.json +++ b/apps/ohmcalc/metadata.json @@ -2,7 +2,7 @@ "id": "ohmcalc", "name": "Ohm's Law Calculator", "shortName": "Ohm's Law Calc", - "version": "0.03", + "version": "0.04", "description": "A smart and simple calculator for Ohm's Law calculations, designed specifically for Bangle.js 2 smartwatches. Handles voltage, current, resistance, and power calculations with smart logic to prevent invalid inputs.", "icon": "app.png", "type": "app",