Closed Nancy-Salpepi closed 1 year ago
Thanks @Nancy-Salpepi, this looks like a bug to me. The location of the value display should not depend on the battery's orientation. It's also a bit odd that the value blocks the pickability of the battery itself, but I don't know if that is to be expected or not.
Thanks @arouinfar! I just went back and looked at the published versions of CCK-AC and DC and the value location changes from top to bottom when the battery is flipped.
Oh, good to know @Nancy-Salpepi!
@samreid since this affects sim usability, I'm going to tag it for the preview milestone. It should either be patched or documented as a known bug.
@KatieWoe also reported this issue in #847
Test device Dell Operating System Win 11 Browser Chrome Problem description For https://github.com/phetsims/qa/issues/772. This does not seem to be as much of an issue in published, as upside down elements are not as fully covered by their values label. In the dev version, if certain elements are upside down (such as by flipping the battery) the values label can cover the entire element and clicking on it does not focus on it so you can't change voltage etc.
Visuals In published:
In dev:
Noting that this can also make dragging objects more difficult. It is particularly bad with fuses.
Troubleshooting information:
Feb 10 design check-in: For the client preview, making the label non-pickable is sufficient. For the full version, the labels should be in the correct locations.
I made the labels non-pickable and confirmed that you can click through them to drag circuit elements now. Also a reminder that unpickable things cannot be studio autoselected. In this case perhaps it is OK since the text is customized through the model element's battery_0.labelTextProperty
. @arouinfar is this OK for the client preview?
Thanks @samreid. The behavior in master is reasonable for the client preview and is definitely an improvement.
We can defer addressing the label location until the next milestone.
@arouinfar what is the desired location for the label? The current version shows this behavior:
I wonder if it ended up that way in part because it prevents some overlap when creating loops?
@arouinfar please advise.
@samreid the location of the label generally looks good as the component is rotated, but perhaps the label could pop back up to the top when it reaches 180°.
This commit prefers to put the label above the circuit element, the rest of the logic is the same:
@arouinfar can you please review?
Looks great, thanks @samreid!
Test device iPad Air 2 Operating System 15.2
Browser safari
Problem description For https://github.com/phetsims/qa/issues/772
On either screen, when the values checkbox is selected and the voltage is negative, the voltage value appears in the middle of the battery. This makes it difficult to select the battery--especially on the iPad (but also with the trackpad on my mac). Is it possible to change the location of the voltage value to below the battery or keep it above the battery like with positive values?
Steps to reproduce
Visuals
https://user-images.githubusercontent.com/87318828/152841428-aadf70c9-04a8-4128-b935-e801be84bb71.mov