scroll-to-today includes the height of the today element in the offset
pased to animator.scrollTo, to be sure today's date is included on
screen when today's item is focused. When the today element was the
whole Grouping, and there are many items due today, this caused
problems. The fix is to include just the <h2> that holds today's date
in the offset.
fixes ADMIN-1021
test plan:
- create 9 items due today
- scroll Today out of the visible area
- click Today
> expect the planner to smoothly scroll Today into view and focus one
> of today's items (it should be the first one, but that will get
> addressed in the ticket that controls fixes ordering)
Change-Id: I32fc13de3e5fd3f1f8ba3cf89396b95817ae3f3d
Reviewed-on: https://gerrit.instructure.com/149494
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
Canvas is a modern, open-source LMS
developed and maintained by Instructure Inc. It is released under the
AGPLv3 license for use by anyone interested in learning more about or using
learning management systems.