-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix alignment of equation terms above sliders #80
Comments
This is presumably referring to the sliders that appear when "Adjustable fix" is selected, and the terms that each of those sliders is associated with. |
Assigning to @memo330179, since this is one of the "3 specific issues" to work on first. |
I need some clarification on this issue. I am not sure what the alignment issue is. My first instinct says the sliders all should be in the center, but I am not sure. |
I have made a few small commits to try and reduce this issue. The sliders are right now slightly better aligned under the coefficients, but it still isn't quite perfect. I have spent a lot of time trying to get perfect alignment (using things like |
Trying to eyeball the slider locations is problematic, since font sizes vary on browsers, and translated symbols will change term width. If you want to precisely position the sliders under terms, you might try adding methods to the equation that allow you to get the position of each term. That will give you the information needed to position the sliders. You may need to transform the term position (using Node's coordinate transform methods, e.g. , |
Thanks for the offer for help! Eventually, I was able to figure out why my previous attempts at setting It seems like the |
@SaurabhTotey wrote:
Nicely done!
In Graphing Quadratics, the difference in horizontal space between sliders was OK, see screenshot below. But you should check with @amanda-phet, since this sim may have requirements that I'm not aware of. |
Assigning to @amanda-phet to review and either give feedback or sign off. The feedback on this issue will potentially affect how I will need to attempt #72. |
Since these sliders are much closer than the ones in GQ, I have a bit more hesitation. c and d are just really close and it seems a problematic from a touch perspective and a little unnecessary. I would prefer if they were more evenly spaced, even if they aren't directly under the coefficients (sorry!). The spacing between a, b, and c looks good, so maybe just apply that to all of the sliders. |
Checked on master and they look great to me! Thanks for making that change. |
The process of making the strings translatable broke the alignment of the equation with the slider
The text was updated successfully, but these errors were encountered: