From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id E5BCD1FF0AB for ; Wed, 07 Oct 2026 08:38:15 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 7CD0C211FA; Wed, 07 Oct 2026 08:38:15 +0200 (CEST) From: Dominik Csapak To: yew-devel@lists.proxmox.com, Thomas Lamprecht Subject: applied: [PATCH] widget: grid picker: scroll the selected entry into view on open Date: Wed, 7 Oct 2026 08:37:57 +0200 Message-ID: <179135506387.217041.11027036046632248517.b4-ty@b4> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261006172617.3125465-1-t.lamprecht@proxmox.com> References: <20261006172617.3125465-1-t.lamprecht@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.387 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: GC7FGSMZKJRE4BJJ57ACEFOWBLGF4YW7 X-Message-ID-Hash: GC7FGSMZKJRE4BJJ57ACEFOWBLGF4YW7 X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Yew framework devel list at Proxmox List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Tue, 06 Oct 2026 19:25:30 +0200, Thomas Lamprecht wrote: > When a picker opens, its table scrolls its own viewport to the > selected entry. That only works while the table is limited to the > picker's height. Since the combobox stopped giving its table the > pwt-fit class, nothing limits it: as a flex item it keeps its content > height, so it grows to the height of all rows and the picker's outer > container scrolls instead. The table then considers every row visible > and never scrolls. With 30 or more entries, where rows are rendered > on demand, the selected entry is not even rendered when the dropdown > tries to focus it, so a picker like the time zone selector always > opened at the top of the list. > > [...] Applied, thanks! [1/1] widget: grid picker: scroll the selected entry into view on open commit: 4791dd9e38846e42866cabff955fce3f69175604