界面div调整和滚动条优化
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
$(function(){
|
||||
var height=document.documentElement.clientHeight;
|
||||
if($('.table-responsive')){
|
||||
$('.table-responsive').css({'height':height-105+'px'});
|
||||
}
|
||||
|
||||
//扩展jquery,增加全局函数
|
||||
$.ipcommon=function(){
|
||||
return {};
|
||||
}
|
||||
@@ -1805,8 +1799,14 @@ var initCommIpVal=function(){
|
||||
}
|
||||
|
||||
window.onresize=function (){
|
||||
var height=document.documentElement.clientHeight;
|
||||
if($('.table-responsive')){
|
||||
$('.table-responsive').css({'height':height-105+'px'});
|
||||
var hei=document.documentElement.clientHeight;
|
||||
hei=hei-71;
|
||||
var rowheigth=0;
|
||||
if($('.row')){
|
||||
rowheigth=$('.row').height();
|
||||
hei=hei-rowheigth;
|
||||
}
|
||||
}
|
||||
if($('.table-responsive')){
|
||||
$('.table-responsive').css({'height':hei+'px'});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -320,28 +320,34 @@ function filterActionInit() {
|
||||
$("#isFilterAction").val("true");
|
||||
fiterPanleShow();
|
||||
}
|
||||
//调整滚动条div的高度
|
||||
var he=document.getElementsByClassName("filter-action-select-panle")[0].offsetHeight;
|
||||
var height=document.documentElement.clientHeight;
|
||||
if(he>0){
|
||||
he+=5;
|
||||
}
|
||||
if($('.table-responsive')){
|
||||
$('.table-responsive').css({'height':height-105-he+'px'});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function tzheight(){
|
||||
var hei=document.documentElement.clientHeight;
|
||||
hei=hei-71;
|
||||
var rowheigth=0;
|
||||
if($('.row')){
|
||||
rowheigth=$('.row').height();
|
||||
hei=hei-rowheigth;
|
||||
}
|
||||
if($('.table-responsive')){
|
||||
$('.table-responsive').css({'height':hei+'px'});
|
||||
}
|
||||
}
|
||||
|
||||
function fiterPanleShow() {
|
||||
$("#filter-btn").find("i").removeClass("fa-angle-double-down").addClass("fa-angle-double-up");
|
||||
//$(".btn-search").addClass("hide");
|
||||
$(".filter-action-select-panle").removeClass("hide");
|
||||
tzheight();
|
||||
}
|
||||
|
||||
function fiterPanleHide() {
|
||||
$("#filter-btn").find("i").removeClass("fa-angle-double-up").addClass("fa-angle-double-down");
|
||||
//$(".btn-search").removeClass("hide");
|
||||
$(".filter-action-select-panle").addClass("hide");
|
||||
tzheight();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user