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: fix issue that caused the number/string input in the custom block editor to display square corners #213

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

gonfunko
Copy link
Owner

@gonfunko gonfunko commented Oct 8, 2024

This PR fixes #202. The superclass calculates rounded corners based on its height, which was ~1px when a new string/number field is added to a custom block, because it was sized before its host block had fully rendered. On subsequent focus events, the field did have rounded corners as expected. Now, we wait for the next render cycle before showing the editor so that the metrics will always be calculated correctly.

@gonfunko gonfunko merged commit c3ee958 into modern-blockly Oct 14, 2024
1 check passed
@gonfunko gonfunko deleted the rounded-editor branch October 14, 2024 15:18
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.

Text/number field should be rounded in the make a block dialog
2 participants