diff --git a/js/common/view/proportions/ProportionsGraphNode.ts b/js/common/view/proportions/ProportionsGraphNode.ts index 652b0a7d..d8a85bf5 100644 --- a/js/common/view/proportions/ProportionsGraphNode.ts +++ b/js/common/view/proportions/ProportionsGraphNode.ts @@ -169,11 +169,13 @@ export default class ProportionsGraphNode extends Node { // 'No Data', visible when we have no data to display. const noDataText = new Text( NaturalSelectionStrings.noDataStringProperty, { font: NaturalSelectionConstants.INSTRUCTIONS_FONT, - centerX: backgroundNode.centerX, - centerY: backgroundNode.top + ( backgroundNode.height / 6 ), maxWidth: 0.5 * backgroundNode.width, tandem: options.tandem.createTandem( 'noDataText' ) } ); + noDataText.boundsProperty.link( bounds => { + noDataText.centerX = backgroundNode.centerX; + noDataText.centerY = backgroundNode.top + ( backgroundNode.height / 6 ); + } ); assert && assert( !options.children, 'ProportionGraphNode sets children' ); options.children = [ backgroundNode, noDataText, content ];