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 width on dummy row. #2947

Merged
merged 1 commit into from
Sep 3, 2019
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

Padding was never added on rows with only dummy inputs.

Proposed Changes

New:
image

Old:
image

Additional information

If a row has only a dummy input it will always align left, even if the dummy input actually said to align right. This seems subpar, although it probably matches the old behaviour.
I didn't actually create a Measurable for a dummy input, since it's never drawn, but that means we don't have a way to find the Blockly.Input that owns this row's fields, and that means we can't tell which way to align stuff.
That's similar to this problem: #338

That makes me wonder if I need an Input measurable for dummy inputs.

@rachel-fenichel rachel-fenichel merged commit ff64170 into google:develop Sep 3, 2019
@rachel-fenichel rachel-fenichel deleted the pad_dummies branch September 3, 2019 17:55
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.

2 participants