Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element 可以根据内部数据布局动态修改Element的高度吗? #37

Open
spykerking opened this issue Dec 18, 2017 · 1 comment
Labels

Comments

@spykerking
Copy link

  • (CGFloat)heightByModel:(TangramDefaultItemModel *)itemModel 现在只有这个方法返回高度,我想根据数据动态布局后,修改Element的高度如何实现?
@HarrisonXi
Copy link
Contributor

的确,现在只有预布局模式,即在渲染之前计算一次高度。如果在这之后想要修改 Element 高度,需要 reload 整张页面,消耗会比较大。

后续我们会提供 reload 局部页面的方法,尽量减少消耗。不过在对应元素之后的元素还是会均受到影响的,消耗减少应该没有那么理想。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants