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

请问下在多列布局下,如果我的高度要根据宽度的比例来设置,要怎么在json文件里写? #49

Open
jxbaoweiyj opened this issue Jan 16, 2018 · 1 comment
Labels

Comments

@jxbaoweiyj
Copy link

如题,用aspectRatio好像没用

@HarrisonXi
Copy link
Contributor

在组件内实现 TangramElementHeightProtocol 协议并实现 heightByModel: 方法。

Tangram 会用这个协议的这个方法取高度。

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