Immediate-Mode-UI / Immediate-Mode-UI/Nuklear

Tooltip on item at right edge of window is cut off

Open
#252 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
11.4k
Forks
686
Avg merge
4d 1h
Merged PRs (30d)
3

Description

As stated. If a tooltip is created on an item that is, for example, on the right side of a window, the text is drawn from the mouse contact point... and is therefore (mostly) invisible since it draws off the side of the window.

I would like the behavior (perhaps optionally) to be that if the text would fall off the edge, the bounds of the tooltip are adjusted so the entire tip is in the window.

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Start by locating the tooltip creation and rendering entry points, then reproduce the case with an item at the window's right edge. Done means the complete tooltip remains visible within the window without changing its normal placement unnecessarily.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.