From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 2010B1FF0AA for ; Tue, 20 Oct 2026 12:04:39 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id B1292215A7; Tue, 20 Oct 2026 12:04:38 +0200 (CEST) Message-ID: <01f61616-0a49-4f4f-806e-d9c9e7a87be8@proxmox.com> Date: Tue, 20 Oct 2026 12:04:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: applied: [PATCH yew-widget-toolkit v5 0/2] data table: auto width with sample store To: Dominik Csapak , yew-devel@lists.proxmox.com References: <20261019102103.1216720-1-d.csapak@proxmox.com> Content-Language: en-US From: Dietmar Maurer In-Reply-To: <20261019102103.1216720-1-d.csapak@proxmox.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1792490673872 X-SPAM-LEVEL: Spam detection results: 0 AWL 2.056 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: 2SH3GKNHDBPEIECCWIZRFEHUKWHOE2MO X-Message-ID-Hash: 2SH3GKNHDBPEIECCWIZRFEHUKWHOE2MO X-MailFrom: dietmar@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: applied On 10/19/26 12:21 PM, Dominik Csapak wrote: > implements auto sizing of columns with a sample store to render > invisibly. > > changes from v4: > * use a 'sample_store' instead of 'sample_records' (thanks @Dietmar), > so tree indentation is considered too > * also apply the cell attributes to the sizers > * also recalculate the sizers on selection/cell configuration changes > * wrap the sizers in an Rc to avoid cloning/comparing them on every > render > * only count filtered records for the debug assertion > * document that sample store changes are not monitored > > changes from v3: > * new patch: factor out the cell rendering loop of the table rows, so > it can be reused for the sample records (for colspan) > * cache the rendered sizers and only recalculate them when the relevant > properties change, instead of on every render > * move the debug assertion into the sizer calculation, so it also > covers property updates, and fix it to allow exactly > VIRTUAL_SCROLL_TRIGGER records > * fix typos > * improve comments > > Dominik Csapak (2): > widget: data table: factor out cell rendering logic > widget: data table: implement auto column sizing based on sample store > > src/widget/data_table/data_table.rs | 125 +++++++++++++++++++++++-- > src/widget/data_table/header_widget.rs | 47 ++++++++++ > src/widget/data_table/mod.rs | 5 +- > src/widget/data_table/rendered_cell.rs | 63 +++++++++++++ > src/widget/data_table/row.rs | 66 +++++-------- > 5 files changed, 254 insertions(+), 52 deletions(-) > create mode 100644 src/widget/data_table/rendered_cell.rs >