lagrange icon indicating copy to clipboard operation
lagrange copied to clipboard

scroll position changing while reloading content on capsule with expired certificate

Open acidus99 opened this issue 1 year ago • 1 comments

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?

acidus99 avatar May 12 '24 16:05 acidus99

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.

skyjake avatar May 21 '24 13:05 skyjake