Closed amanda-phet closed 3 years ago
For these overlaps, I am wondering why the height of the x1 and x2 labels is so tall, especially above the variable. I think we can move these labels down if needed, but I would like to do a combination of first reducing the height of the label (if possible) and then shifting down if we still need more room to not overlap the 0.
For example, this pink rectangle looks like a totally reasonable size for the background of these labels:
And then we can move them down a couple pixels so they don't overlap with the 0.
To be clear- this change can be applied universally: all screens and scenes.
I might not be able to review this when it gets fixed, so if this change happens after August 7th please assign back to @stemilymill and also to @kathy-phet .
I also found it odd how the backgrounds were a little too tall for the texts. I fixed this by forcing the texts to accurately compute their own bounds (as suggested by @jbphet). I also moved the point names down so that they no longer overlap with the number line numbers. Assigning to @stemilymill and @kathy-phet for review.
Looks good to me! Thanks for the fix @SaurabhTotey.
Should this be cherry-picked into the RC branch?
Yes, this should be in the 1.0 published version. I assume @jessegreenberg will help @SaurabhTotey with this process when rc.2 is published for spot checks.
@SaurabhTotey cherry-picked this change into the release branch, ready for verification by QA.
@stemilymill wrote:
Another instance of x labels overlapping other things is in the explore screen, for the house/girl scene and thermometer scene, the x labels overlap the 0 on the number line.
Originally posted by @stemilymill in https://github.com/phetsims/number-line-distance/issues/63#issuecomment-892827027