소스 검색

手机屏幕禁止使用FixColumn功能

jqh 5 년 전
부모
커밋
235c52e0e7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Grid/FixColumns.php

+ 1 - 1
src/Grid/FixColumns.php

@@ -184,7 +184,7 @@ class FixColumns
         $('.table-fixed-right tbody tr').eq(i).outerHeight(height);
     });
     
-    if ($tableMain.width() >= $tableMain.prop('scrollWidth')) {
+    if ($tableMain.width() >= $tableMain.prop('scrollWidth') || $(window).width() < 600) {
         $('.table-fixed').hide();
     } else {
         var height = ($(window).height() - 215);