10-20-2018 07:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-20-2018 07:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
This shouldn’t be difficult but I just can’t get it. I want the step count text positioned on the bottom right of the clock face and the step icon immediately to the left of that text. How do I get the icon to float beside the text if the text width size is unknown?
Answered! Go to the Best Answer.

Accepted Solutions
10-22-2018 09:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-22-2018 09:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I did something similar https://github.com/Fitbit/sdk-moment/blob/master/app/index.js#L31

10-20-2018 08:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-20-2018 08:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I used the bbox function to get the location of the text box and then adjusted my graphics off of that. Here is a sample that puts the graphic on the right...
//Allign the feet on the right of the steps let bboxBurn = myBurn.getBBox().right; myBurnPic.x = bboxBurn + 5; myBurnPicShadow.x = bboxBurn + 7;

10-22-2018 09:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-22-2018 09:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I did something similar https://github.com/Fitbit/sdk-moment/blob/master/app/index.js#L31

