diff --git a/crates/benilla-app/assets/ui/ItemTextFrame.xml b/crates/benilla-app/assets/ui/ItemTextFrame.xml index ae267726..6906cca7 100644 --- a/crates/benilla-app/assets/ui/ItemTextFrame.xml +++ b/crates/benilla-app/assets/ui/ItemTextFrame.xml @@ -9,15 +9,11 @@ ITEM_TEXT_BEGIN → ITEM_TEXT_READY → ITEM_TEXT_CLOSED. ADAPTATIONS (the MailFrame.xml precedents): - · The body scroll (ItemTextScrollFrame, UIPanelScrollFrameTemplate 280×355 at -66,-76) is - a plain Frame at that exact rect with the page FontString INSIDE it (no live scrollbar); - a very long page clips. The ref's own flanking scrollbar art (UI-Character-ScrollBar - top/bottom + the black middle strip) is quoted verbatim as inert layers, so the right - edge reads exactly like the reference at rest. - · ItemTextPageText is SimpleHTML in the ref — drawn here as a FontString at the same - rect (our letters/pages are plain text; an HTML page renders as its markup, accepted). - · The ScrollFrame-only verbs the reference's OnLoad/READY use (UpdateScrollChildRect, - ScrollBar SetValue/Hide, scrollBarHideable) are dropped with the live scrollbar. + · The body scroll and the page are the REFERENCE's own structure since decisions + 1337/1338 (B240): a real ScrollFrame over a 10x10 scroll child holding a real + SimpleHTML. Before those, the scroll was a plain Frame with an inert bar and the page a + FontString — so an HTML body drew as its own markup and a long one was cut off with + "...", both of which Goudy reported. · The two material colour TABLES are the reference's data (its Fonts.xml), quoted verbatim — the numbers ARE the look. They live here Benilla-scoped (the MoneyInput-shim precedent) because our own Fonts.xml deliberately doesn't ship the reference's two @@ -166,6 +162,10 @@ end ItemTextPageText:SetText(body) ItemTextScrollFrame:Show() + -- A page is content the reader has never seen: re-measure what there is to scroll and + -- start at the top, or page two opens halfway down page one. + ItemTextScrollFrame:UpdateScrollChildRect() + ItemTextScrollFrameScrollBar:SetValue(0) local pageNumber = ItemTextGetPage() local hasNext = ItemTextHasNextPage() @@ -275,9 +275,11 @@ - - + +