Skip to content

Conversation

@MrBrax
Copy link
Contributor

@MrBrax MrBrax commented Dec 11, 2025

(can't show a video recording of how it looks because the s&box video recorder is broken)

Fixes Facepunch/sbox-issues#9449

Updated the tooltip positioning logic to ensure tooltips remain within screen boundaries with a 20px margin. The new implementation dynamically places the tooltip to the left/right and above/below the cursor based on available space, preventing tooltips from hanging off the screen.
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.

Make tooltip alignment not hardcoded by mouse position against screen size

1 participant