From 829dfc4726c3711c60e6ee498417758c810426bf Mon Sep 17 00:00:00 2001 From: Asish Kumar Date: Mon, 2 Nov 2026 20:04:50 +0530 Subject: [PATCH] fix(marko-virtual): retry a prepend's anchor write clamped before the sizer commits The Marko tags call `_willUpdate()` from `onUpdate`, but Marko renders the new `size` into the consumer's sizer in a later batch. On an end-anchored prepend the anchor sync in `_willUpdate` therefore writes the shifted offset while the sizer still has its old height, and the browser clamps it to the old max. When `scrollToEnd()` ran just before the prepend landed (a "Latest" click while a history load is in flight), the view was left one prepend above the bottom. Core already held the new offset, so `isAtEnd()` reported true and nothing corrected it. Core now records that anchor sync with `_clampedBy`, as the compensation and hold-flush writes already do, so the existing clamp retry (#1258) re-issues it once the sizer has grown. `_retryClampedAdjustment` becomes adapter-callable like `_willUpdate`, and both Marko tags call it from a `