phetsims / example-sim

Example demonstrating the structure of a PhET interactive simulation.
http://scenerystack.org/
GNU General Public License v3.0
14 stars 27 forks source link

sim relies on align:'right' default for Panels #4

Closed pixelzoom closed 8 years ago

pixelzoom commented 8 years ago

Related to https://github.com/phetsims/sun/issues/252, this sim relies on the old default of align:'right' for Panels. Below are the stack traces for occurrences that need to be checked. These are the occurrences noted when loading the sim in requirejs mode. If the sim creates Panels dynamically, you should do further checking with fuzzMouse.

>>>> sim relies on align:right
VM17183 Panel.js?bust=1472164828057:54 Error
    at ControlPanel.Panel [as constructor] (http://localhost/~cmalley/GitHub/sun/js/Panel.js?bust=1472164828057:50:15)
    at new ControlPanel (http://localhost/~cmalley/GitHub/example-sim/js/example/view/ControlPanel.js?bust=1472164828057:68:11)
    at new ExampleScreenView (http://localhost/~cmalley/GitHub/example-sim/js/example/view/ExampleScreenView.js?bust=1472164828057:39:33)
    at ExampleScreen.Screen.call.backgroundColor [as createView] (http://localhost/~cmalley/GitHub/example-sim/js/example/ExampleScreen.js?bust=1472164828057:34:16)
    at ExampleScreen.initializeView (http://localhost/~cmalley/GitHub/joist/js/Screen.js?bust=1472164828057:134:25)
    at ExampleScreen.initializeModelAndView (http://localhost/~cmalley/GitHub/joist/js/Screen.js?bust=1472164828057:151:12)
    at initializeScreen (http://localhost/~cmalley/GitHub/joist/js/Sim.js?bust=1472164828057:441:14)
    at Array.forEach (native)
    at new Sim (http://localhost/~cmalley/GitHub/joist/js/Sim.js?bust=1472164828057:439:13)
pixelzoom commented 8 years ago

None of the above call sites use the minWidth option, so their behavior will be unaffected. Closing.