Skip to content

Keep mouseover highlight inside the frame border - #97

Merged
voshond merged 1 commit into
mainfrom
hover-inside-border
Nov 11, 2026
Merged

voshond merged 1 commit into
mainfrom
hover-inside-border

Conversation

@voshond

@voshond voshond commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Problem

The mouseover wash from #96 covered the whole unit button. Party/raid bars have no border, so it looked right there. Bordered frames (player, target, focus…) use chamfered or soft border art with transparent corners and edges, so the wash showed past the border.

Fix

UnitFrame:Layout now insets the hover host by Backdrop.Padding(border), the same inset the bars use. Separate padding is respected. Frames without a border stay flush, so ClickGrid is unchanged.

Tests

  • New hover_spec case: the wash is inset by uniform and separate padding, and flush with the border off.
  • luajit tests/run.lua -j: 1083 passed.

The wash covered the whole unit button, so it showed past chamfered and soft border edges. It now insets by the border padding, like the bars.
@voshond
voshond merged commit 9afa79b into main Nov 11, 2026
1 check failed
@voshond
voshond deleted the hover-inside-border branch November 11, 2026 15:51
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