Browse Source

Merge pull request #1041 from hotlcc/feature/develop-fix-position-logic

位置计算逻辑完备性处理,可以解决在frame中底部laydate下端被遮挡的问题。
pull/1045/head
贤心 2 years ago committed by GitHub
parent
commit
92b3ed8651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/modules/lay.js

2
src/modules/lay.js

@ -175,6 +175,8 @@
if(obj.clickType === 'right'){
top = winArea() - elemHeight - margin*2;
if(top < 0) top = 0; //不能溢出窗口顶部
} else {
top = margin; // 位置计算逻辑完备性处理
}
}
}

Loading…
Cancel
Save