Explorar o código

modified calcuration

mayu morita %!s(int64=7) %!d(string=hai) anos
pai
achega
bbd5d5d885
Modificáronse 1 ficheiros con 30 adicións e 26 borrados
  1. 30 26
      lib/views/layout-growi/base/layout.html

+ 30 - 26
lib/views/layout-growi/base/layout.html

@@ -29,35 +29,39 @@
 
 
 <!-- Side Scroll Bar-->
 <!-- Side Scroll Bar-->
 
 
+
+   * Disabled temporally -- 2018.06.06 Yuki Takei
+   * see https://weseek.myjetbrains.com/youtrack/issue/GC-278
+   *
 <script>
 <script>
+  function DrawScrollbar() {
+    var h = window.innerHeight - 50 ;
+    $('#revision-toc-content').slimScroll({
+      railVisible: true,
+      position: 'right',
+      height: h,
+    });
+  }
+
+  $(function(){
+    DrawScrollbar();
+  });
 
 
-function DrawScrollbar() {
+  (function () {
+    var timer = 0;
 
 
-  var h = window.innerHeight - (document.getElementById('revision-toc').clientHeight) ;
-  $('#revision-toc-content').slimScroll({
-    railVisible: true,
-    height: h,
-  });
-}
-
-$(function(){
-  DrawScrollbar();
-});
-
-(function () {
-  var timer = 0;
-
-  window.onresize = function () {
-    if (timer > 0) {
-      clearTimeout(timer);
-    }
-
-    timer = setTimeout(function () {
-      DrawScrollbar();
-    }, 200);
-  };
-}());
-</script>
+    window.onresize = function () {
+      if (timer > 0) {
+        clearTimeout(timer);
+      }
+
+      timer = setTimeout(function () {
+        DrawScrollbar();
+      }, 200);
+    };
+  }());
+
+  </script>
 
 
 <footer class="footer">
 <footer class="footer">
   {% include '../../widget/system-version.html' %}
   {% include '../../widget/system-version.html' %}