pxt
pxt copied to clipboard
Return statements clip into the bottom of other statements
Describe the bug The return statement clips into the bottom of other statements when it is inside of those statements.
To Reproduce Steps to reproduce the behavior:
- Create a function.
- Put a if statement in that function.
- Grab a return statement in that block. This might happen with other ending blocks, although this is not tested.
- The return statement now intersects the bottom of the if statement.
Note that this happens with the return statement by itself, it appears to clip into the function block slightly.
Expected behavior The return statement terminates the if statement cleanly. That being there isn't any clipping going on.
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Browser: Firefox
- Version: 113.0.1 (64-bit) (Original Bug Report Version - Confirmed broken on 125.0.3 (64-bit))
Additional context I'm not entirely sure about the Issues Policy.
This issue was ignored in https://github.com/microsoft/pxt-microbit and has been posted here as a result of that. The original issue can be found at https://github.com/microsoft/pxt-microbit/issues/5142 and has not been closed.
Issue Clarification: Return statement visuals are buggy in general, and don't just occur with if statements.
Bug is tracked in pxt-microbit repo.