mbien opened a new pull request, #9028:
URL: https://github.com/apache/netbeans/pull/9028
Some editor tooltips are interactive. To be able to enter the tooltip with
the mouse, a rectangle is computed which prevents the tooltip to hide, even if
the mouse leaves the component (which would hide it instantly).
This improves this mechanism slightly by
- adding an extra x-margin to the ignored area
- offsetting the debugger tooltip to further move the buttons into the
ignored area (right above the mouse cursor)
other:
- removed obsolete code in `ToolTipAnnotation` and minor cleanup in that
class (no other changes).
debug graphics indicates the ignore area, before:
<img width="966" height="140" alt="debug-tooltip-before"
src="https://github.com/user-attachments/assets/b7535552-646c-4a00-a1ce-8141ac425e08"
/>
after:
<img width="966" height="140" alt="debug-tooltip-after"
src="https://github.com/user-attachments/assets/722656a7-0e8f-4d3b-bc74-a97c421f1cd8"
/>
please note the area is now wider and the tooltip moved even more to the
left, I was just too lazy to re-create the screenshot.
other things I tried:
Why can't it be the entire width of the tooltip? Because this would prevent
neighboring components to spawn their own tooltip (see example with
`foo,bar,baz` next to each other). I did try to fight this problem by making
the ignore area time based - but this made the code even more complicated and
harder to maintain.
things I didn't try but could further improve this mechanism:
Use a trapezoid instead of a rectangle (upper part could have the width of
the tooltip)
closes https://github.com/apache/netbeans/pull/8961 (alternative proposal)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists