From 2e8ebf44d601f2313c0d777a41105fa7695c09dc Mon Sep 17 00:00:00 2001 From: jbphet Date: Mon, 24 May 2021 14:58:52 -0600 Subject: [PATCH] adjusted margins so that checkbox text can be slightly wider, see https://github.com/phetsims/blackbody-spectrum/issues/124 --- js/blackbody-spectrum/view/BlackbodySpectrumControlPanel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/blackbody-spectrum/view/BlackbodySpectrumControlPanel.js b/js/blackbody-spectrum/view/BlackbodySpectrumControlPanel.js index 3dbb4e1..06157c5 100644 --- a/js/blackbody-spectrum/view/BlackbodySpectrumControlPanel.js +++ b/js/blackbody-spectrum/view/BlackbodySpectrumControlPanel.js @@ -39,7 +39,7 @@ define( require => { // constants const DISPLAY_FONT = new PhetFont( 18 ); const CHECKBOX_TEXT_FILL = blackbodyColorProfile.panelTextProperty; - const CHECKBOX_TEXT_WIDTH = 100; + const CHECKBOX_TEXT_WIDTH = 110; const CONTROL_PANEL_FILL = 'rgba( 0, 0, 0, 0 )'; const CHECKBOX_COLOR = blackbodyColorProfile.panelStrokeProperty; const CHECKBOX_TOUCH_DILATION = 6; @@ -64,7 +64,7 @@ define( require => { constructor( model, options ) { options = _.extend( { - xMargin: 15, + xMargin: 10, yMargin: 15, lineWidth: 1, fill: CONTROL_PANEL_FILL, @@ -112,7 +112,7 @@ define( require => { eraseButton.enabled = length !== 0; } ); - // 3 checkboxes: Peak Values, Intensity, Labels + // checkboxes const checkboxOptions = { checkboxColorBackground: CONTROL_PANEL_FILL, checkboxColor: CHECKBOX_COLOR