Merge branch '1885-keep-proxy' closes #1885
[arvados.git] / apps / workbench / app / assets / javascripts / sizing.js
index 388f7279903b10b194549243d0b2b62d69d6adde..640893fe0ca04f36aa4388f96da60c9834920b94 100644 (file)
@@ -11,19 +11,19 @@ function graph_zoom(divId, svgId, scale) {
 }
 
 function smart_scroll_fixup(s) {
-    console.log(s);
+    //console.log(s);
     if (s != null && s.type == 'shown.bs.tab') {
         s = [s.target];
     }
     else {
         s = $(".smart-scroll");
     }
-    console.log(s);
+    //console.log(s);
     for (var i = 0; i < s.length; i++) {
         a = s[i];
         var h = window.innerHeight - a.getBoundingClientRect().top - 20;
         height = String(h) + "px";
-        a.style.height = height;
+        a.style['max-height'] = height;
     }
 }