diff --git a/js/buoyancy/view/applications/BuoyancyApplicationsScreenView.ts b/js/buoyancy/view/applications/BuoyancyApplicationsScreenView.ts index 58581bfc..4ffa95b1 100644 --- a/js/buoyancy/view/applications/BuoyancyApplicationsScreenView.ts +++ b/js/buoyancy/view/applications/BuoyancyApplicationsScreenView.ts @@ -109,6 +109,7 @@ export default class BuoyancyApplicationsScreenView extends BuoyancyScreenView material.custom ); const customBottleDensityControlTandem = materialInsideControlsTandem.createTandem( 'customBottleDensityNumberControl' ); - const customBottleDensityControl = new NumberControl( DensityBuoyancyCommonStrings.densityStringProperty, customInsideBottleMaterial.densityProperty, customInsideBottleMaterial.densityProperty.range, combineOptions( { - visibleProperty: new GatedVisibleProperty( customDensityControlVisibleProperty, customBottleDensityControlTandem ), - sliderOptions: { - accessibleName: DensityBuoyancyCommonStrings.densityStringProperty, - thumbNode: new PrecisionSliderThumb( { - tandem: customBottleDensityControlTandem.createTandem( 'slider' ).createTandem( 'thumbNode' ) - } ) - }, - numberDisplayOptions: { - valuePattern: DensityBuoyancyCommonConstants.KILOGRAMS_PER_VOLUME_PATTERN_STRING_PROPERTY - }, - tandem: customBottleDensityControlTandem - }, MaterialMassVolumeControlNode.getNumberControlOptions() ) ); + const bottleCustomInsideMaterialDensityControl = new NumberControl( + DensityBuoyancyCommonStrings.densityStringProperty, + customInsideBottleMaterial.densityProperty, + customInsideBottleMaterial.densityProperty.range, + combineOptions( { + visibleProperty: new GatedVisibleProperty( customDensityControlVisibleProperty, customBottleDensityControlTandem ), + sliderOptions: { + accessibleName: DensityBuoyancyCommonStrings.densityStringProperty, + thumbNode: new PrecisionSliderThumb( { + tandem: customBottleDensityControlTandem.createTandem( 'slider' ).createTandem( 'thumbNode' ) + } ) + }, + numberDisplayOptions: { + valuePattern: DensityBuoyancyCommonConstants.KILOGRAMS_PER_VOLUME_PATTERN_STRING_PROPERTY + }, + tandem: customBottleDensityControlTandem + }, MaterialMassVolumeControlNode.getNumberControlOptions() ) ); const airVolumeMaxWidth = ( materialInsideControls.width - DensityBuoyancyCommonConstants.SPACING_SMALL ) / 2; const airVolumeDisplayTandem = bottleControlsTandem.createTandem( 'airVolumeDisplay' ); @@ -180,7 +185,7 @@ export default class BuoyancyApplicationsScreenView extends BuoyancyScreenView