On Sun, May 02, 2021 at 08:26:14AM -0700, Per Bothner wrote: > > > 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.
I saw that you've commited a change to this but it is not reflected for me at https://per.bothner.com/tmp/Kawa-txjs-plain/style/info.js in the on_message function.