Skip to content

Conversation

@abhayastudios
Copy link
Contributor

Fix aspect ratio issue on iOS where resized images were filled out instead of maintaining the aspect ratio. Also added example for scaling images to the docs.

@ghost ghost added the new PR label Sep 21, 2017
@abhayastudios
Copy link
Contributor Author

@radeva Initially the CI for this PR was passing for commit 821621d (I only changed an enum in the code), but then something with the merge didn't work, which I don't understand. Could you please have a look? Thanks!

@abhayastudios
Copy link
Contributor Author

abhayastudios commented Oct 3, 2017

@radeva any update? I see the tests passed now... Thanks!

@radeva
Copy link
Contributor

radeva commented Oct 6, 2017

Hi @abhayastudios ,

Thanks for submitting a PR! My concern is that this is changing the current behaviour of the plugin which is a breaking change. We'll use your idea and extend it a bit to add an option where the user can state if he/she want to use AspectFIll or AspectFit. The same way there are options for maxWidth and maxHeight. We'll let you know when this is merged and published. Let us know if this is a working solution for you.

Best regards,
Veselina

@abhayastudios
Copy link
Contributor Author

@radeva keep in mind this is already the default behavior on Android...

@ghost ghost assigned radeva Oct 17, 2017
@radeva radeva merged commit cba4ab1 into NativeScript:master Oct 18, 2017
@ghost ghost removed the new PR label Oct 18, 2017
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

Successfully merging this pull request may close these issues.

2 participants