mirror of https://github.com/layui/layui
Merge pull request #1041 from hotlcc/feature/develop-fix-position-logic
位置计算逻辑完备性处理,可以解决在frame中底部laydate下端被遮挡的问题。pull/1045/head
commit
92b3ed8651
|
@ -175,6 +175,8 @@
|
|||
if(obj.clickType === 'right'){
|
||||
top = winArea() - elemHeight - margin*2;
|
||||
if(top < 0) top = 0; //不能溢出窗口顶部
|
||||
} else {
|
||||
top = margin; // 位置计算逻辑完备性处理
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue