Merge branch '3099-spinner-assets' closes #3099
[arvados.git] / apps / workbench / app / assets / javascripts / sizing.js
index 3d60274439f51232982d6737ed3c23c40b0f0372..71761db744c9ca1b93bb715fabc67b31f6ae6306 100644 (file)
@@ -20,9 +20,10 @@ function smart_scroll_fixup(s) {
     }
 
     s.each(function(i, a) {
-        var h = window.innerHeight - $(a).offset().top;
+        a = $(a);
+        var h = window.innerHeight - a.offset().top - a.attr("data-smart-scroll-padding-bottom");
         height = String(h) + "px";
-        $(a).css('max-height', height);
+        a.css('max-height', height);
     });
 }