Skip to content

Commit

Permalink
Add documentation, see #26
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Aug 10, 2021
1 parent 2214b7e commit 1435229
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/common/view/DensityBuoyancyScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,9 @@ class DensityBuoyancyScreenView extends ScreenView {
model.invisibleBarrierBoundsProperty.value = model.invisibleBarrierBoundsProperty.value.withMinX( leftPoint.x + 0.01 ).withMaxX( rightPoint.x - 0.01 );
}
};

// leftBarrierViewPointProperty and rightBarrierViewPointProperty are Property<Property>, and we need to listen
// to when the value.value changes
new DynamicProperty( this.leftBarrierViewPointProperty ).lazyLink( resizeBarrier );
new DynamicProperty( this.rightBarrierViewPointProperty ).lazyLink( resizeBarrier );
this.postLayoutEmitter.addListener( resizeBarrier ); // We need to wait for the layout AND render
Expand Down

0 comments on commit 1435229

Please sign in to comment.