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

Debugger max Structures Fields to Display in Tooltip #287

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

ChrisRfr
Copy link
Contributor

@ChrisRfr ChrisRfr commented Oct 9, 2024

Calculate the maximum number of lines when debugging structures to always display the tooltip up or down with the maximum number of fields possible.

Currently, with MaxLine = 25 hardcoded, no possibility to display more lines for large structures if there is enough space.
If there isn't enough space at the bottom or top, the tolltip is Not displayed at All.
Large structure tooltip is often not displayed when the cursor is on a line in the middle of the editor, no problem when the cursor is at the top or bottom.

With the calculation, the number of lines to be displayed is adjusted (with a 1 line margin to be on the safe side) to the available up or down space.
And so make sure the tooltip is always displayed with the maximum number of structure fields displayed.

Tested on Windows only but not on Linux, Mac

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.

1 participant