From cf9394a55fe5a48764fe392af944fd02f6f9a5a2 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Mon, 31 Jul 2023 10:07:03 -0600 Subject: [PATCH] fix dynamic layout of Proportions graph, https://github.com/phetsims/natural-selection/issues/347 --- js/common/view/proportions/ProportionsGraphNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common/view/proportions/ProportionsGraphNode.ts b/js/common/view/proportions/ProportionsGraphNode.ts index edd04cb7..8ca06e52 100644 --- a/js/common/view/proportions/ProportionsGraphNode.ts +++ b/js/common/view/proportions/ProportionsGraphNode.ts @@ -181,7 +181,7 @@ export default class ProportionsGraphNode extends Node { super( options ); // Center content on the background. Columns or generationSpinner may be hidden via PhET-iO. unlink is not necessary. - content.localBoundsProperty.link( () => { + content.boundsProperty.link( () => { content.center = backgroundNode.center; } );