lagrange
lagrange copied to clipboard
scroll position changing while reloading content on capsule with expired certificate
This is a bit of an odd minor bug. When you click "refresh" on a page that is served from a capsule with an expired certificate, the page scrolls up by a pixel:
https://github.com/skyjake/lagrange/assets/4118560/95af6256-8817-40da-9d10-3abc9c5af63c
This behavior doesn't happen on capsules with unexpired certs. Perhaps this is related to the "expired certificate" banner that is displayed at the top of the content?
You are probably right. The scroll position is saved as a normalized offset, and one of those calculations must be using the document height excluding the banner.