NumberTicker icon indicating copy to clipboard operation
NumberTicker copied to clipboard

Bring digits closer together

Open antoinebala opened this issue 3 years ago • 7 comments

Hi, is there a way to bring the digits and symbols in the number closer to each other, to match the iOS system number formatting? I'm attaching a screenshot that shows the difference between the two. Thanks!

Screen Shot 2022-04-22 at 5 55 21 PM

antoinebala avatar Apr 22 '22 21:04 antoinebala

It's not configurable, but there is padding set in the NumberAccessory, which is private and controls this.

fahlout avatar Apr 22 '22 23:04 fahlout

Thanks! I replaced the padding to 0 instead of 2, but it does not seem to change anything. Am I changing the right value? Screen Shot 2022-04-22 at 7 45 42 PM

antoinebala avatar Apr 22 '22 23:04 antoinebala

Can you try removing the padding line all together?

fahlout avatar Apr 23 '22 00:04 fahlout

I did try that too. It also doesn't work.

antoinebala avatar Apr 23 '22 00:04 antoinebala

I also tried setting it to a large number (10), and it also doesn't do anything.

antoinebala avatar Apr 23 '22 00:04 antoinebala

I honestly haven't looked at this code in quite some time so I'm not sure why that's not working

fahlout avatar Apr 23 '22 00:04 fahlout

I multiplied the width by 0.93 here and it works good enough for now 😅 Thanks!

Screen Shot 2022-04-22 at 8 43 29 PM ! Screen Shot 2022-04-22 at 8 44 37 PM

antoinebala avatar Apr 23 '22 00:04 antoinebala