You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In FPAF, we are using a work around where another rectangle is required to make the sky node resize without showing whitespace. This functionality should be a part of sky node. Possibly this could be addressed in GradientBackgroundNode and apply to GroundNode as well.
// add rectangle on top of the sky node. See https://github.com/phetsims/fluid-pressure-and-flow/issues/87this.addChild(newRectangle(-5000,-1000,10000,1002,{stroke: '#01ACE4',fill: '#01ACE4'}));// add sky nodethis.addChild(newSkyNode(-5000,0,10000,groundY,groundY));
Currently, many sims with sky node exhibit the same bug as #87 including BalancingAct.
I'm not yet convinced that anything needs to be changed in SkyNode. The first thing that should happen is to address the duplication in fluid-pressure-and-flow, and factor out a "sky and ground" class. What happens there can then inform any possible changes to SkyNode.
So... I'm going to transfer this issue to fluid-pressure-and-flow, and change the title.
pixelzoom
changed the title
SkyNode should resize without showing whitespace
Factor out "sky and ground" class, identify possible changes to scenery-phet.SkyNode
Feb 23, 2021
In FPAF, we are using a work around where another rectangle is required to make the sky node resize without showing whitespace. This functionality should be a part of sky node. Possibly this could be addressed in GradientBackgroundNode and apply to GroundNode as well.
Currently, many sims with sky node exhibit the same bug as #87 including BalancingAct.
See #215
The text was updated successfully, but these errors were encountered: