zhangxc %!s(int64=4) %!d(string=hai) anos
pai
achega
9efa23e3a7
Modificáronse 1 ficheiros con 6 adicións e 7 borrados
  1. 6 7
      src/js/information.js

+ 6 - 7
src/js/information.js

@@ -149,15 +149,14 @@ function bindTabClick(){
   })
 }
 function adjustHeight() {
-  var ht = window.innerHeight;
+  var ht = window.innerHeight || document.documentElement.clientHeight;
   $(".content").height(ht - 145 - 30 + "px");
 }
-// function adjustWidth() {
-//   var wt = window.innerWidth;
-//   var wt = window.innerWidth || document.documentElement.clientWidth;
-//   $(".titleH2").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
-//   $(".content").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
-// }
+function adjustWidth() {
+  var wt = window.innerWidth || document.documentElement.clientWidth;
+  $(".titleH2").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
+  $("pre").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
+}
 $(window).on('resize', function(){
   adjustHeight()
   adjustWidth()