diff --git a/js/common/model/IdealGasLawContainer.ts b/js/common/model/IdealGasLawContainer.ts index d3102d65..68803486 100644 --- a/js/common/model/IdealGasLawContainer.ts +++ b/js/common/model/IdealGasLawContainer.ts @@ -108,8 +108,8 @@ export default class IdealGasLawContainer extends BaseContainer { this.previousLeft = this.left; this.isOpenProperty = new DerivedProperty( - [ this.lidIsOnProperty, this.lidWidthProperty, this.boundsProperty ], - ( lidIsOn, lidWidth, bounds ) => !lidIsOn || this.getOpeningWidth() !== 0 + [ this.lidIsOnProperty, this.lidWidthProperty ], + ( lidIsOn, lidWidth ) => !lidIsOn || ( lidWidth < this.getMaxLidWidth() ) ); }