support scroll preservation in view frame for Shiny documents