Skip to content

Conversation

@ShahzaibIbrahim
Copy link
Contributor

@ShahzaibIbrahim ShahzaibIbrahim commented Dec 18, 2025

Because of rounding errors the bracket selection highlight is often inconsistent. Making use of residual values provides precise rectangle values and highlight is consistent across all zooms

How to test

  • Run the runtime workspace with monitor-specific scaling turned on
  • Add some brackets in Java file { }
  • Select the opening bracket, the closing bracket will be highlighted.
  • See if the rectangle around highlighted bracket is surrounded the bracket correctly (no-cutoffs)

Result

Before Fix:
image

After Fix:
image

Requires:

@github-actions
Copy link
Contributor

github-actions bot commented Dec 18, 2025

Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 4e76057.

♻️ This comment has been updated with latest results.

@ShahzaibIbrahim ShahzaibIbrahim changed the title Bracket selection square too small Use stable Y-coordinate for character highlight and adjust height Dec 22, 2025
@ShahzaibIbrahim ShahzaibIbrahim marked this pull request as ready for review December 22, 2025 13:12
@ShahzaibIbrahim ShahzaibIbrahim changed the title Use stable Y-coordinate for character highlight and adjust height Use OfFloat Point values to create precise highlight brackets Dec 22, 2025
Because of rounding errors the bracket selection highlight is often
inconsistent. Making use of residual values provides precise rectangle
values and highlight is consistent across all zooms
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.

Bracket selection square too small in some zooms

1 participant