-
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
Short max widths for game answers #117
Comments
EquationBoxNode is used for both the guess and answer boxes, where the equation's 60 equationNode.maxWidth = boxSize.width - ( 2 * X_MARGIN ); // constrain width for i18n So I can't immediately speculate on why the answer equation would be smaller. |
Cleanup and fix in the above commits. This was a problem with 'Graph The Line' type challenge, as identified in the upper-left corner of the screen when running with It now behaves properly with A subclass of 'Graph The Line' challenge is 'Place The Point' challenge. If the placement of the 3 points doesn't make a line, you'll see something like this: For reasons that I won't try to explain... With In practice, this will not be an issue, so I'm not going to go through the gyrations required to make it the full width of the box with @KatieWoe please verify in master. If it looks OK, leave the issue open for regression testing in the next RC. |
Looks good on master |
Pending regression testing in 1.3.0-rc.2. |
Thanks @KatieWoe. Fixed in master and 1.3 in the above commits. Please verify in master. If all looks well, leaves this issue open for regression testing in 1.3.0-rc.3. |
Doesn't happen in the first screens, but still happens on game screens. @pixelzoom |
@KatieWoe can you please elaborate? What problem are you still seeing related to this issue? Below are screenshots for all of the cases that you've identified so far, and text in the bottom box is the full width of the box in all cases. Screenshots of master with Similar to screenshot in #117 (comment): Similar to screenshot in #117 (comment), with undefined slope: Similar to screenshot in #117 (comment), but with defined slope: |
OK thanks. This is a new problem, created by the fix for the reported problem. |
@KatieWoe The problem reported in #117 (comment) is fixed, please verify in master. Also verify that this doesn't break #114. |
All looks good from what I can see |
Pending regression testing in 1.3.0-rc.4. |
I did have a quick question for GL though. I noticed that "not a line" change size depending on what happened before it. I think this was known (#117 (comment)) but I wanted to make sure before I oked the issue. |
So here's the dilemma... For "Place the Point" challenges, there are 3 things that can be displayed in the bottom box (the "guess box"):
Only one of these is displayed depending on where the 3 points are placed, and the other 2 are invisible. All 3 share a common parent (the box's content), and The problem only occurs when transitioning from "x = N (undefined slope)" to "... is not a line" because the former is a longer string. When transitioning from an equation to "... is not a line", there's no problem. This recording demonstrates that: A few things to consider:
So my recommendation is that we do not address this for the current release, or possibly at all. @amanda-phet are you OK with that? |
I agree with @pixelzoom that we should not address this. I'm not sure it is worth it ever, because of the considerations you listed (unlikely to occur, and no effect on usability). |
Thanks @amanda-phet. @KatieWoe anything else to do here, or OK to close? |
Should be ok to close. Closing |
For phetsims/qa#277 and phetsims/qa#278
When the correct answer is given on a game level and it says "your line" (the one written in black) in the bottom box, the answer string is very short. This can be noticeable without string Tests if the string is long enough. easiest to see with stringTest=long.
The text was updated successfully, but these errors were encountered: