fix calculation of spring stroke-width

[#46394255]