openml-python icon indicating copy to clipboard operation
openml-python copied to clipboard

Navbar hides header on Firefox

Open PGijsbers opened this issue 6 years ago • 4 comments

When loading a documentation page on a specific header in Firefox, e.g. usage#basic-usage, when coming from a different page, the navbar hides the section header.


usage#basic-usage shows as: image


I expect usage#basic-usage shows as: image


The behavior seems to work correctly on Chrome. When moving between section headers on the same page, it also seems to work fine on Firefox.

I tried to apply this fix, but it did not seem to help (though I can't guarantee I did that right).

Using Firefox 66.0.3 (64-bit).

PGijsbers avatar Apr 17 '19 10:04 PGijsbers

For me it works like expected in Chrome and FF.

Screenshot 2019-04-29 at 21 56 44

nok avatar Apr 29 '19 19:04 nok

I just tried again and it works in Chromium, but not in FF. FF only works if I narrow the window a bit. @nok shouldn't the heading at the top be 'basic usage'?

mfeurer avatar Apr 30 '19 08:04 mfeurer

It depends how it's implemented. Either you use the basic anchor tag #id or scrollTo() in JavaScript. In general you use the static variant as fallback. However it's not a critical behaviour.

nok avatar Apr 30 '19 16:04 nok

From your screenshot it seems to have skipped even more of the page? Following the link in the original post should leave you at the top of the page exactly, having the 'Basic Usage' title fully visible (note that after opening the site, if I switch between headers in the sidebar, 'Basic Usage' will be displayed correctly, it is only on following the link the first time).

PGijsbers avatar May 02 '19 18:05 PGijsbers