Closed matthew-blackman closed 1 year ago
@matthew-blackman will take a screenshot and add label: help-wanted
Test case 1: Create a resistor, set isEditableProperty to false, click on the resistor, while edit panel visible set isEditableProperty to true
Before:
After:
Test case 2: Create a resistor, click on resistor, set isEditableProperty to false
Before:
After:
I added a link
that updates the position of the CircuitElementEditContainerNode
using the pre-existing updatePosition
method, and it seems to work well for keeping the edit box centered. I regression tested this by opening and closing the edit box for a number of different components, and changed their edit-ability in studio.
Assigning to @samreid and @matthew-blackman so that one of them can review.
I tested many different circuit element edit panels (and hiding/showing their contents), and they all centered properly. Good fix @jbphet, thanks!
Panel doesn’t re-center in the play area if toggled while the panel is visible.
Test case 1: Create a resistor, set isEditableProperty to false, click on the resistor, while edit panel visible set isEditableProperty to true
Test case 2: Create a resistor, click on resistor, set isEditableProperty to false
Found while working on https://github.com/phetsims/circuit-construction-kit-common/issues/917