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

Icon aligned with unknown text size

ANSWERED

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?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions
Best Answer
0 Votes
2 REPLIES 2

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 Answer
0 Votes
Best Answer
0 Votes