fix: Correct the alignment of narrow text in input fields. by gonfunko · Pull Request #9327 · RaspberryPiFoundation/blockly
The basics
The details
Resolves
Fixes #9069
Proposed Changes
This PR fixes a bug that caused narrow text values in Zelos input fields to be slightly misaligned horizontally from the center. Input fields have a minimum width, and if the measured width of the text was less than that, it was positioned incorrectly. I also adjusted a couple places that were manually setting the width attribute of the field size and bypassing the minimum size enforcement as a result; this wasn't a root cause, but could lead to tricky bugs down the line.