Bad template change using iron:router

[SOLVED] Problem with iron:router and templates:

  • I go to the bottom in a 1000px height page
  • Then I use iron:router to go to a 700px height page
  • When the second page render , I see a 300px empty space at the page bottom during 2 seconds

How can I solve this ?

EDIT: Hi guys, thank you for response.I have already solved this problem. I use
template.nameTemplate.onDestroyed(function(){
$(‘body’).scrollTop(0);
})

1 Like

Do you have a repo that reproduces this issue?

Maybe use waitOn on the route?