拓扑图弹出框表头悬浮
This commit is contained in:
@@ -296,7 +296,7 @@ function $id(tid,type,show){// id 类型 alter的消息
|
|||||||
div.insertBefore($('body table',window.document).first()); // 将div加入页面中
|
div.insertBefore($('body table',window.document).first()); // 将div加入页面中
|
||||||
var $divArray = $(this).closest("div");
|
var $divArray = $(this).closest("div");
|
||||||
var divO = $divArray[0];
|
var divO = $divArray[0];
|
||||||
div.css('top','28px');
|
div.css('top','0px');
|
||||||
div.css('display','inline');
|
div.css('display','inline');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -361,8 +361,14 @@ function $id(tid,type,show){// id 类型 alter的消息
|
|||||||
if($divArray.size()>0){
|
if($divArray.size()>0){
|
||||||
var divO = $divArray[0];
|
var divO = $divArray[0];
|
||||||
if(tableOrgPosition.top < divO.scrollTop){
|
if(tableOrgPosition.top < divO.scrollTop){
|
||||||
|
var preDivTop=$headerDiv.parent().prevAll("div[id='divTop']");
|
||||||
|
if(preDivTop.length>0){
|
||||||
$headerDiv.css('top','28px');
|
$headerDiv.css('top','28px');
|
||||||
|
}else{
|
||||||
|
$headerDiv.css('top','0px');
|
||||||
|
}
|
||||||
$headerDiv.css('display','inline');
|
$headerDiv.css('display','inline');
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
$headerDiv.css('display','none');
|
$headerDiv.css('display','none');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user