Skip to content

Commit

Permalink
Added VBox spacing for CollectionBoxNode elements so black box highli…
Browse files Browse the repository at this point in the history
…ghts don't overlap the goal text. #188
  • Loading branch information
Denz1994 committed Jun 8, 2020
1 parent fc551d1 commit 26259ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/common/view/CollectionBoxNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CollectionBoxNode extends VBox {
* @param {Object} [options]
*/
constructor( box, toModelBounds, showDialogCallback, options ) {
super();
super( { spacing: 2 } );

// @private {CollectionBox}
this.box = box;
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/MultipleCollectionBoxNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MultipleCollectionBoxNode extends CollectionBoxNode {
* @param {function} showDialogCallback
*/
constructor( box, toModelBounds, showDialogCallback ) {
super( box, toModelBounds, showDialogCallback, { spacing: 2 } );
super( box, toModelBounds, showDialogCallback );

// Number of molecules that can be collected
const quantityNode = new RichText( '', {
Expand Down

0 comments on commit 26259ae

Please sign in to comment.