Skip to content

Commit

Permalink
fix(virtual-list): 修复 Virtual List 组件在支付宝小程序中的兼容性问题 (#9460)
Browse files Browse the repository at this point in the history
Co-authored-by: Walker Li <[email protected]>
Co-authored-by: chenjiajian <[email protected]>
Co-authored-by: Li,Weitao <[email protected]>
  • Loading branch information
4 people authored Jun 10, 2021
1 parent 9622c7e commit eb5a69b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ export function isRtlFunc ({ direction }) {
}
export function getRectSize (id, success = () => {}, fail = () => {}) {
const query = Taro.createSelectorQuery()
query.select(id).fields({
size: true
}, (res) => {
query.select(id).boundingClientRect((res) => {
if (res) {
success(res)
} else {
Expand Down

0 comments on commit eb5a69b

Please sign in to comment.