[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: js-info polishing
From: |
Per Bothner |
Subject: |
Re: js-info polishing |
Date: |
Sun, 2 May 2021 08:26:14 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 4/30/21 4:06 AM, Per Bothner wrote:
On 4/29/21 9:40 AM, Gavin Smith wrote:
Another problem: Navigate to
https://per.bothner.com/tmp/Kawa-txjs-plain/index.html
type "i" then "constant-fold", select the option in the menu, then pressĀ
Return.
Then the page
https://per.bothner.com/tmp/Kawa-txjs-plain/Application-and-Arguments-Lists.html#index-constant_002dfold
is correctly loaded, but the side bar menu is completely expanded, and scrolled
I checked in a fix for this, and updated
https://per.bothner.com/tmp/Kawa-txjs-plain/index.html
It was slightly complicated. When a child page is asked to "scroll-to" a link,
it checks if the
requested link is a section element. If not it looks for the closest outer
sectioning element
(an elements whose class contains chapter/section/etc). Then it sends a
message with the section
element's id back-to the top-level, which uses that to update the sidebar.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
- Re: js-info polishing,
Per Bothner <=