[PR #259] [MERGED] Clip options rows smoothly at list boundaries #2443

Closed
opened 2026-11-02 15:56:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/259
Author: @Online5277
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @ludovic111

Base: main ← Head: fix/options-list-clipping


📝 Commits (1)

  • ede136b Clip partially visible options list rows

📊 Changes

1 file changed (+111 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/options_ui.rs (+111 -2)

📄 Description

Options-list rows appeared and disappeared as whole widgets while scrolling because drawing required each row to fit entirely inside the viewport. Render intersecting rows and clip their geometry and UVs at the top and bottom boundaries. Only boundary rows need clipping; fully visible rows retain the existing draw path.

The visible portion of a clipped control now accepts clicks. Hidden portions remain outside the list's hit area, keeping headers and footer controls separate.

Follow-up to #257 / #242. The scrollbar drag behavior stays intact.

Validation: a real keybind-list draw/input regression failed before the fix and passes for both viewport edges; all 13 options UI tests, warning-denied client all-target Clippy, formatting, whitespace and public-tree checks pass. No game window, visual probe or preview rebuild was run.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/259 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/options-list-clipping` --- ### 📝 Commits (1) - [`ede136b`](https://github.com/horizon-rust/horizon/commit/ede136bdd2bb0ebd989c27ad187c219f293fa230) Clip partially visible options list rows ### 📊 Changes **1 file changed** (+111 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/options_ui.rs` (+111 -2) </details> ### 📄 Description Options-list rows appeared and disappeared as whole widgets while scrolling because drawing required each row to fit entirely inside the viewport. Render intersecting rows and clip their geometry and UVs at the top and bottom boundaries. Only boundary rows need clipping; fully visible rows retain the existing draw path. The visible portion of a clipped control now accepts clicks. Hidden portions remain outside the list's hit area, keeping headers and footer controls separate. Follow-up to #257 / #242. The scrollbar drag behavior stays intact. Validation: a real keybind-list draw/input regression failed before the fix and passes for both viewport edges; all 13 options UI tests, warning-denied client all-target Clippy, formatting, whitespace and public-tree checks pass. No game window, visual probe or preview rebuild was run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:56:12 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2443
No description provided.