10-20-2018 07:20
10-20-2018 07:20
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.
Best Answer10-22-2018 09:50
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
10-22-2018 09:50
I did something similar https://github.com/Fitbit/sdk-moment/blob/master/app/index.js#L31
Best Answer10-20-2018 08:36
10-20-2018 08:36
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;
Best Answer10-22-2018 09:50
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
10-22-2018 09:50
I did something similar https://github.com/Fitbit/sdk-moment/blob/master/app/index.js#L31
Best Answer