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