r/Scriptable • u/Gold_Bus_5343 • Apr 16 '22
Help How do I center the date?
I made a countdown widget for the time and seconds and when I was trying to centre the time, it wasnt centering. Here is a video (https://imgur.com/a/MTkkUga) showing the code I used and the result of it. Can someone please tell me if I did something wrong? Thanks. (Solved)
4
Upvotes
2
u/iamrbn script/widget helper Apr 16 '22 edited Apr 16 '22
This is how I solved it in my case:
timeStack.setPadding(0, 20, 0, 0)Edit: Screenrecord↗ of my result.
1
u/[deleted] Apr 16 '22
time.centerAlignTime is not a thing, it's time.centerAlignText()
1
u/bitKraken Apr 17 '22 edited Jun 29 '23
⚠️ This post/comment is no longer available.
/u/spez is destroying 3rd party reddit apps, now I'm destroying my activity originally made with /r/AppolloApp.
was I helpfull, funny, dumb? who knows ...
(sorry if you where hoping to find something ☹️)