scroll_util: Account for element padding in height calculations.

This commit is contained in:
Cynthia Lin
2018-07-21 21:03:57 -07:00
committed by Tim Abbott
parent ee82f14d04
commit e9cf545ada
2 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ exports.scroll_element_into_container = function (elem, container) {
// the element visible.
var elem_top = elem.position().top;
var elem_bottom = elem_top + elem.height();
var elem_bottom = elem_top + elem.innerHeight();
var opts = {
elem_top: elem_top,