-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
should values be right aligned? #169
Comments
Good catch @pixelzoom. Right alignment for these values would definitely look nicer. Not sure if this would be better to re-assign to @pixelzoom or @jbphet, but feel free to unassign/defer until this sim gets worked on again. |
According to responsible_dev.md, @jbphet is responsible for this sim, so I'm going to unassign myself. |
This does seem like an improvement, but it was far more fiddly and time consuming than I'd hoped. I have something implemented, so @arouinfar - please review https://phet-dev.colorado.edu/html/projectile-motion/1.1.0-dev.2/phet/projectile-motion_en_phet.html and let me know if you think any further changes are necessary. Also, please also opine on whether you feel we should do a maintenance release to get this published. If not, it may be a long time before this goes live. |
@jbphet looks like you used the wrong issue number in the commits. I've tagged them above. |
@jbphet said:
Can you comment on why that was the case? It should be as simple as using NumberDisplay with |
Sure. Several of the cases were not using Thanks for fixing the commits, not sure how I messed that up... |
There's no need to write client code to handle that case. These options to NumberDisplay should have done the job:
I don't see |
I just had a look at this. Highly recommended to replace this (and others) with NumberDisplay. |
I agree that using |
@jbphet the updated tracer and numberControl readout alignments look good in 1.1.0-dev.2! Thanks for making these changes. I'm not sure that these changes would be critical enough for a maintenance release, so I'll defer to @ariel-phet. |
@jbphet @arouinfar @pixelzoom. A nice improvement, but not worthy of a maintenance release. Removing assignees. |
#173 has been created and completed, the values look very nice as right aligned, we decided against an MR. I'm going to close this issue, as this improvement will go out upon next release. Please reopen if you disagree. |
Noted while I was working on phetsims/scenery-phet#446 (comment) ...
Numeric values with units are displayed throughout this sim using NumberDisplay and NumberControl. And they all appear to use
align: 'center'
for the value alignment. Usingalign: 'right'
would look better, since the units wouldn't shift around. Examples:The text was updated successfully, but these errors were encountered: