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

Viewport highlighting is not accurate #25

Open
nmatt opened this issue Jan 8, 2016 · 2 comments
Open

Viewport highlighting is not accurate #25

nmatt opened this issue Jan 8, 2016 · 2 comments

Comments

@nmatt
Copy link

nmatt commented Jan 8, 2016

NetBeans adds blank space in the editor at the bottom of files. The viewport highlighting in the code outline does not take this into account and highlights a different (larger) section of the file than is visible in the editor viewport (see example screenshot below).

To compensate for the blank space that NetBeans adds, the section highlighted in the code outline would either have to shrink correspondingly, or else sufficient blank space would have to be added to the bottom in the code outline as well. Personally, I think the first option would be preferable.

bottom-of-file

@nmatt nmatt changed the title Viewport highlighting is not accurate at bottom of file Viewport highlighting is not accurate Jan 8, 2016
@nmatt
Copy link
Author

nmatt commented Jan 8, 2016

PS: The highlighting is inaccurate not just at the bottom, but throughout the file. The shorter the file, the more inaccurate it gets. Here is another example where the full code is visible in the editor window, but only part of it is highlighted in the code outline:

inaccuracy

@markiewb
Copy link
Collaborator

Thanks @nmatt: It depends somehow on the font-size. The font-size isn't taken in account.

I will have to dig deep in others code for that. So do not expect me to do this soon. The original code of BlueJ uses the font-size 1 IIRC, so the new font-size option from #20 may introduced this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants