search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Scheduler looses scroll position

Asked by Viktor Eriksson
9 years ago.

I am unable to debug the problem to this issue.
I have the scheduler in a container which i minimize.
Scheduler looses the scroll position and scrolls to the top when trying to minimize this container.
Can someone explain to me why this happens.
Here is a fiddle. Scroll down then click the minimize button for the container that holds the schduler.
http://jsfiddle.net/Viktor/JPEaa/340/

Answer posted by Dan Letecky [DayPilot]
9 years ago.

It looks like gets reset right after the animation starts. It happens with plain div with "overflow:auto" as well:

http://jsfiddle.net/JPEaa/344/

Probably the best solution would be to hook the minimize action and save the scrollbar position using dps.getScrollY() and then reset it using dps.setScrollY().

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.