[Select] 下拉过滤时高度变化导致弹层跳动,缺少 menu_min_h

Open Beginner friendly
#3,850 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
desktop, frontend

Research direction

Read the SelectOptions definition and the menu_max_h builder, then trace how drop-up menus size and filter their options. Add the minimum-height option and builder described in the issue; done when setting menu_min_h and menu_max_h to the same value keeps the menu height stable while filtering in the settings window.

Written by the indexing model from the issue text.

Description

搜索型 Select 在 drop-up 场景下,过滤把 20 项缩到 2 项时整个菜单会位移,鼠标目标在点击前跑掉。我们在 SelectOptions 中新增了 menu_min_h: Option 与 menu_min_h(Length) builder,与 menu_max_h 取同值时弹层高度恒定、只原地过滤,已验证可在设置窗口使用。

Dominant language
Rust
Stars
20k
Forks
1.2k
Avg merge
1d 3h
Merged PRs (30d)
276

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from longbridge/gpui-kit

All issues in longbridge/gpui-kit

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.