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

设置View.widthSize.equalTo(View.heightSize);宽度不能等于高度 #129

Open
AppleDP opened this issue Jul 27, 2020 · 1 comment
Open

Comments

@AppleDP
Copy link

AppleDP commented Jul 27, 2020

UICollectionViewCell 使用 MyRelativeLayout 自适应高度,在 MyRelativeLayout 里添加一个视图View,将 View 的约束设置为:
View.myVertMargin = 0;
View.myLeft = 5;
View.widthSize.equalTo(View.heightSize);
布局完成后 Cell 的 height 有值但 width = 0;

@youngsoft
Copy link
Owner

您好,请升级到最新版本1.9.8。本问题已经解决。

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

No branches or pull requests

2 participants