Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix colour and image fields #2492

Merged

Conversation

rachel-fenichel
Copy link
Collaborator

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

Image and colour fields were rendering wrong.

Proposed Changes

Add a getCorrectedSize function for images and add them to the list of jackass fields--they're placed to the left of their ostensible top-left corner.

Add padding between pairs of non-editable fields.

}
return new goog.math.Size(
this.size_.width + Blockly.BlockSvg.SEP_SPACE_X,
this.size_.height + 4);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add constant

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

core/field_colour.js Show resolved Hide resolved
Copy link
Contributor

@alschmiedt alschmiedt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rachel-fenichel rachel-fenichel merged commit 5e727ed into google:render/collab May 24, 2019
@rachel-fenichel rachel-fenichel deleted the render/fix_fields branch May 24, 2019 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants