Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing horizontal alignment of text prgramatically

I'm trying to change the alignment of some text based on a setting since a user pointed out that having my time centered with seconds causes it to move around a lot. They suggested left aligning if they pick the option to show seconds. I can't seem to find away to change the text-anchor. Using style.textAnchor = "start" didn't seem to do anything.

Best Answer
0 Votes
1 REPLY 1

Try it without the .style, it looks like it's just an attribute on the element itself.

https://dev.fitbit.com/build/reference/device-api/document/#interface-textelement

Best Answer