You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tabs): clamp the "+" new-tab popup's hit-tests to its drawn position
The `+` new-tab popup (`NewTabMenu`) still had the clamp drift the shared
`clamped_position` helper set out to eliminate for the tab and file-
explorer menus: `render_new_tab_menu` hand-clamped `menu.position` when it
would overflow the right/bottom edge, while the hover and click hit-tests
used the raw, unclamped position. Opening the popup within
`NEW_TAB_MENU_WIDTH` of the right edge drew it shifted onto screen but left
its clickable/hoverable region anchored partly offscreen, so a click on a
visible item was treated as an outside-click and silently dismissed the
menu instead of activating it.
Give `NewTabMenu` the same `height()`/`clamped_position()` helpers as
`TabContextMenu` and route render + both hit-tests through them, clamping
against the last rendered frame size (as the tab menu already does) so
render and input always agree.
Regression test `plus_button_menu_near_right_edge_clicks_land_on_drawn_items`
fails without the hit-test fix.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GQYut8xrWsYyQffc4D84dz
0 commit comments