]> git.ardis.lu - ardislu.dev/commit
Fix broken scroll position on back button
authorArdis Lu <ardisglu@gmail.com>
Sat, 2 Nov 2024 06:28:04 +0000 (23:28 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sat, 2 Nov 2024 06:28:04 +0000 (23:28 -0700)
commit91f5ce1f096d872ab25bc9be1d50669e8d3c011a
tree7eb42eca17109377390dc47bd51c7a573f1a3bfd
parent9be81e85a143a454449e3a5e6864339c83df638a
Fix broken scroll position on back button

Wrapping setGridRowEnd in setTimeout causes the CSS recalculation (and window height update) to occur AFTER the scroll position has already been set, which causes the scroll position to be lost. The setTimeout was only required to workaround odd timing between showSearch and showPage, which is resolved by moving setGridRowEnd to showPage.
script.js
This page took 0.031342 seconds and 4 git commands to generate.