pxt icon indicating copy to clipboard operation
pxt copied to clipboard

Return statements clip into the bottom of other statements

Open ProjectHSI opened this issue 1 year ago • 1 comments
trafficstars

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:

  1. Create a function.
  2. Put a if statement in that function.
  3. Grab a return statement in that block. This might happen with other ending blocks, although this is not tested.
  4. 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 Screenshot 2023-05-16 095558

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.

ProjectHSI avatar May 12 '24 22:05 ProjectHSI

Issue Clarification: Return statement visuals are buggy in general, and don't just occur with if statements.

ProjectHSI avatar May 12 '24 22:05 ProjectHSI

Bug is tracked in pxt-microbit repo.

abchatra avatar Jul 26 '24 22:07 abchatra