Closed pixelzoom closed 5 years ago
This was added to RutherfordAtomConstructor
for #156
// {Node} control panel is created below by sceneProperty listener, to correspond to scene
this.controlPanel = null;
That's a problem, because the control panel created by RSBaseScreenView
doesn't get removed or disposed.
@jessegreenberg I went ahead and fully addressed this. I removed this.controlPanel
from RSBaseScreenView
, and made the subclasses fully responsible for controlPanel
.
I compared master to the published version, to verify that the control panels looked the same. And I tested with ?ea&fuzz
.
Please review.
Awesome, looks great thanks. I also compared against published version and the layout looks the same.
Noted while investigating #158.
RSBaseScreenView
createsthis.controlPanel
, line 195:RutherfordAtomScreenView
andPlumPuddingAtomScreenView
are the only subclasses ofRSBaseScreenView
. One of the first things they do is dispose ofthis.controlPanel
and create a new one. E.g. inPlumPuddingAtomScreenView
constructor: