瀏覽代碼

优化在macOS下chrome的滚动条问题

zhouchenglin 7 年之前
父節點
當前提交
d65ab77613

+ 2 - 2
src/main/resources/static/js/base/log/list.js

@@ -10,7 +10,7 @@ $(function () {
 function initialPage() {
     vm.dateRangeSelect(1);
 	$(window).resize(function() {
-		$('#dataGrid').bootstrapTable('resetView', {height: $(window).height()-54});
+		$('#dataGrid').bootstrapTable('resetView', {height: $(window).height()-56});
 	});
     //日期选择
     laydate.render({
@@ -31,7 +31,7 @@ function initialPage() {
 function getGrid() {
 	$('#dataGrid').bootstrapTableEx({
 		url: '../../sys/log/list?_' + $.now(),
-		height: $(window).height()-54,
+		height: $(window).height()-56,
 		queryParams: function(params){
 			params.username = vm.keyword;
             params.startDate = vm.startDate;

+ 2 - 2
src/main/resources/static/js/base/quartz/list.js

@@ -10,7 +10,7 @@ $(function() {
 function initialPage() {
 	$(window).resize(function() {
 		$('#dataGrid').bootstrapTable('resetView', {
-			height : $(window).height() - 54
+			height : $(window).height() - 56
 		});
 	});
 }
@@ -18,7 +18,7 @@ function initialPage() {
 function getGrid() {
 	$('#dataGrid').bootstrapTableEx({
 		url : '../../quartz/job/list?_' + $.now(),
-		height : $(window).height() - 54,
+		height : $(window).height() - 56,
 		queryParams : function(params) {
 			params.name = vm.keyword;
 			return params;

+ 2 - 2
src/main/resources/static/js/base/role/list.js

@@ -9,14 +9,14 @@ $(function () {
 
 function initialPage() {
 	$(window).resize(function() {
-		$('#dataGrid').bootstrapTable('resetView', {height: $(window).height()-54});
+		$('#dataGrid').bootstrapTable('resetView', {height: $(window).height()-56});
 	});
 }
 
 function getGrid() {
 	$('#dataGrid').bootstrapTableEx({
 		url: '../../sys/role/list?_' + $.now(),
-		height: $(window).height()-54,
+		height: $(window).height()-56,
 		queryParams: function(params){
 			params.roleName = vm.keyword;
 			return params;

+ 2 - 2
src/main/resources/static/js/base/user/list.js

@@ -10,7 +10,7 @@ $(function() {
 function initialPage() {
 	$(window).resize(function() {
 		$('#dataGrid').bootstrapTable('resetView', {
-			height : $(window).height() - 54
+			height : $(window).height() - 56
 		});
 	});
 }
@@ -18,7 +18,7 @@ function initialPage() {
 function getGrid() {
 	$('#dataGrid').bootstrapTableEx({
 		url : '../../sys/user/list?_' + $.now(),
-		height : $(window).height() - 54,
+		height : $(window).height() - 56,
 		queryParams : function(params) {
 			params.username = vm.keyword;
 			return params;

+ 1 - 1
src/main/resources/static/js/index.js

@@ -22,7 +22,7 @@ var menuItem = Vue
 // iframe自适应
 $(window).on('resize', function() {
 	var $content = $('.content');
-	$content.height($(this).height() - 145);
+	$content.height($(this).height() - 146);
 	$content.find('iframe').each(function() {
 		$(this).height($content.height());
 	});

+ 2 - 2
src/main/resources/velocity/template/list.js.vm

@@ -9,14 +9,14 @@ $(function () {
 
 function initialPage() {
 	$(window).resize(function() {
-		$('#dataGrid').bootstrapTable('resetView', {height: $(window).height()-54});
+		$('#dataGrid').bootstrapTable('resetView', {height: $(window).height()-56});
 	});
 }
 
 function getGrid() {
 	$('#dataGrid').bootstrapTableEx({
 		url: '../../${requestMapping}/list?_' + $.now(),
-		height: $(window).height()-54,
+		height: $(window).height()-56,
 		queryParams: function(params){
 			params.name = vm.keyword;
 			return params;