aspectRatio not work as expected in yoga 1.14.0 #944

Closed
opened 2019-10-29 20:43:32 -07:00 by zhenglibao · 1 comment
zhenglibao commented 2019-10-29 20:43:32 -07:00 (Migrated from github.com)

Report

Issues and Steps to Reproduce

  1. On iOS 12, yoga 1.14.0, init UIImageView with properties
    aspectRatio: 1
    width: 100

  2. With SDWebImage to set remote image (size: 150 x 300)

  3. The final size of the UIImageView is 100 x 300

Expected Behavior

I hope the UIImageView size is 100 x 100

Actual Behavior

The UIImageView size is 100 x 300

Before I use yoga 1.6.0, it works well

# Report - [x] I have searched [existing issues](https://github.com/facebook/yoga/issues) and this is not a duplicate # Issues and Steps to Reproduce 1. On iOS 12, yoga 1.14.0, init UIImageView with properties aspectRatio: 1 width: 100 2. With SDWebImage to set remote image (size: 150 x 300) 3. The final size of the UIImageView is 100 x 300 # Expected Behavior I hope the UIImageView size is 100 x 100 # Actual Behavior The UIImageView size is 100 x 300 Before I use yoga 1.6.0, it works well
NickGerleman commented 2023-06-13 08:07:45 -07:00 (Migrated from github.com)

We are deprecating YogaKit as part of the Yoga 2.0 release. We are still going to release a new revision based on the current state of the repo, but won't be accepting new contributions, since we are going to be removing it from the repo after.

We are deprecating YogaKit as part of the Yoga 2.0 release. We are still going to release a new revision based on the current state of the repo, but won't be accepting new contributions, since we are going to be removing it from the repo after.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#944
No description provided.