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 checkbox rendering #2521

Merged

Conversation

rachel-fenichel
Copy link
Collaborator

The details

Resolves

It looked like this before:
image

Proposed Changes

  • Add checkboxes to the list of jackass fields.
  • Override getComputedSize to include the size of the border rect.

Reason for Changes

Checkboxes were allocated too little space, and offset when rendered.

Test Coverage

test_fields_checkbox screenshot diff now passes.

@@ -288,7 +288,8 @@ Blockly.BlockRendering.Drawer.prototype.drawInternals_ = function() {
Blockly.BlockRendering.Drawer.prototype.dealWithJackassFields_ = function(field) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wasn't there suppose to be a TODO to remove this method before it goes into master?

@rachel-fenichel rachel-fenichel merged commit 1b531e5 into google:render/collab May 29, 2019
@rachel-fenichel rachel-fenichel deleted the render/checkbox branch May 29, 2019 19:45
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