Skip to content
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

atom position off in game #149

Closed
jbphet opened this issue Mar 10, 2017 · 11 comments
Closed

atom position off in game #149

jbphet opened this issue Mar 10, 2017 · 11 comments
Assignees
Labels

Comments

@jbphet
Copy link
Contributor

jbphet commented Mar 10, 2017

I'm regression testing master after pulling in some things from the 1.4-phetio branch, and saw a problem in the game where the position of an atom was off, see screenshot below. This should be fixed before next release off of master that includes the game.

baa-atom-position-off

@jbphet
Copy link
Contributor Author

jbphet commented Mar 10, 2017

Here's another somewhat similar case that I ran into:

baa-atom-position-off-2

@phet-steele
Copy link
Contributor

phet-steele commented Jul 17, 2017

@jessegreenberg @jbphet this did not get fixed before the release of 1.6.0-rc.1. JB decided Jesse should fix it. For phetsims/qa/issues/22.

@jessegreenberg
Copy link
Contributor

Thanks @phet-steele, shutting down the RC until this is added.

@jessegreenberg
Copy link
Contributor

Layout fixed in the above commit, layout was changed so that it looks like the published version.

@phet-steele
Copy link
Contributor

@jessegreenberg, the atoms in every game look to be correctly vertically aligned on the screen, but not horizontally. Between different challenges, you can see an atom jump left and right with respect to each other. Below, the atom for Helium is much more to the left:

screen shot 2017-07-19 at 11 31 04 am

screen shot 2017-07-19 at 11 31 29 am

@jessegreenberg
Copy link
Contributor

@phet-steele do you know if the deployed version exhibits any of this atom jumping?

@phet-steele
Copy link
Contributor

@phet-steele do you know if the deployed version exhibits any of this atom jumping?

It does.

@phet-steele phet-steele removed their assignment Jul 20, 2017
@jbphet
Copy link
Contributor Author

jbphet commented Jul 20, 2017

IMO, this is still worth fixing even if it appears in the published version unless it is unexpectedly difficult to do so.

@jessegreenberg
Copy link
Contributor

@jbphet sounds good.

The atom is placed relative to its center, and the stability indicator for a particular AtomNode will change its bounds:
screen shot 2017-07-20 at 5 36 34 pm

If we place the atom according to its left bound, things should align.

@jessegreenberg
Copy link
Contributor

Handled in the above commit. Seemed to fix it, and I verified that the other AtomNodes in the other game views don't have this problem.

@phet-steele
Copy link
Contributor

I LIKE it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants