Code Monkey home page Code Monkey logo

Comments (5)

heshiyou avatar heshiyou commented on August 27, 2024

这个和设备性能以及当时的负载关系比较大,有劳提供下你当时的设备型号。

from brick-layout.

raochuan avatar raochuan commented on August 27, 2024

数据量比较大,设备是用的模拟器,可能跟你说的负载有关系,setData的回调能保证文字等渲染完成,图片渲染不一定吧

from brick-layout.

Jinchengawu avatar Jinchengawu commented on August 27, 2024

_computeCardHeight()里边调用了 _computeSingleCardHeight()
_computeSingleCardHeight()里边调用了 wx.createSelectorQuery()
wx.createSelectorQuery() 当前元素如果没有被内容撑开 就会获取高度不正确;
wx.createSelectorQuery() 获取不准确,这个问题我在很多地方都遇到过

from brick-layout.

shisongsong avatar shisongsong commented on August 27, 2024

@Jinchengawu 那这种情况怎么搞嘞,今天也遇到了,计算出来的高度都是240

from brick-layout.

xiaohongzai avatar xiaohongzai commented on August 27, 2024

建议在滚动的时候重新计算

暂无维护计划,欢迎 PR

from brick-layout.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.