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 Answer
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.
I did something similar https://github.com/Fitbit/sdk-moment/blob/master/app/index.js#L31
Best AnswerI 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 Answer
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.
I did something similar https://github.com/Fitbit/sdk-moment/blob/master/app/index.js#L31
Best Answer