Skip to content

Fix hat block spacing #840

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

Merged

Conversation

paulkaplan
Copy link
Contributor

Resolves

What Github issue does this resolve (please include link)?
Fixes #838

Proposed Changes

Describe what this Pull Request does
Adds Blockly.BlockSvg.START_HAT_HEIGHT to the y offset in the flyout layout method for hat blocks. This offset was being added to the top, but not to the y offset for the bottom, squishing blocks together.

Reason for Changes

Explain why these changes should be made
Bug reported #838

Incidentally this problem actually already existed, it just wasn't as obvious because of the previous large spacing. You can tell looking back before the margin that something wasn't right:
screen shot 2017-03-13 at 9 43 36 am

Test Coverage

Here are some before/after screenshots:
Before
screen shot 2017-03-13 at 9 42 33 am

After
screen shot 2017-03-13 at 9 41 23 am

Copy link
Contributor

@thisandagain thisandagain left a comment

Choose a reason for hiding this comment

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

Nicely done. This looks good. Tested vertical and horizontal playgrounds on Chrome.

@thisandagain thisandagain removed their assignment Mar 13, 2017
@thisandagain thisandagain merged commit bfd8dd7 into scratchfoundation:develop Mar 13, 2017
@thisandagain
Copy link
Contributor

Landing for test. @rachel-fenichel happy to revert after testing if desired.

@paulkaplan paulkaplan deleted the fix-hat-block-spacing branch March 13, 2017 16:01
paulkaplan pushed a commit to paulkaplan/scratch-blocks that referenced this pull request May 5, 2017
…procedure_rename

Use setValue in fieldTextInput so that procedure renaming works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hat blocks should not overlap in the block pane
3 participants