Skip to content

Commit

Permalink
add ComboBox related bad text, phetsims/chipper#728
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 17, 2019
1 parent e54507f commit 15b5e1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/intro/view/IntroProjectilePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ define( function( require ) {
/**
* @param {Array.<ProjectileObjectType>} objectTypes - types of objects available for the dropdown model
* @param {Property.<ProjectileObjectType>} selectedProjectileObjectTypeProperty - currently selected type of object
* @param {Node} comboBoxListParent - node for containing the combobox
* @param {Node} comboBoxListParent - node for containing the combo box
* @param {Property.<number>} projectileMassProperty
* @param {Property.<number>} projectileDiameterProperty
* @param {Property.<number>} projectileDragCoefficientProperty
Expand Down Expand Up @@ -79,7 +79,7 @@ define( function( require ) {
var buttonXMargin = 10;
var comboBoxLineWidth = 1;

// first item contains horizontal strut that sets width of combobox
// first item contains horizontal strut that sets width of combo box
var firstItemNodeWidth = comboBoxWidth -
itemXMargin -
0.5 * firstItemNode.height -
Expand Down
4 changes: 2 additions & 2 deletions js/lab/view/LabProjectilePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ define( function( require ) {
var AIR_RESISTANCE_ICON = ProjectileMotionConstants.AIR_RESISTANCE_ICON;

/**
* @param {Node} comboBoxListParent - node for containing the combobox
* @param {Node} comboBoxListParent - node for containing the combo box
* @param {KeypadLayer} keypadLayer - for entering values
* @param {LabModel} model
* @param {Object} [options]
Expand Down Expand Up @@ -109,7 +109,7 @@ define( function( require ) {
var buttonXMargin = 10;
var comboBoxLineWidth = 1;

// first item contains horizontal strut that sets width of combobox
// first item contains horizontal strut that sets width of combo box
var firstItemNodeWidth = comboBoxWidth - itemXMargin - 0.5 * firstItemNode.height - 4 * buttonXMargin - 2 * itemXMargin - 2 * comboBoxLineWidth;
firstItemNode.addChild( new HStrut( firstItemNodeWidth ) );

Expand Down

0 comments on commit 15b5e1a

Please sign in to comment.