-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Image scaled incorrectly on iOS since NS5 and plugin version >3.0.0 #16
Comments
I had to set the https://github.com/triniwiz/nativescript-image-zoom/blob/master/src/image-zoom.ios.ts#L23 The stretch parameters don't seem to work. |
@FranciZ Did you clone and used a local version of the plugin? Or changed the existing file inside the node_modules folder? |
@racknoris Just edited the module in node_modules for now. |
@FranciZ Ok, so just to be sure, you added: |
Don't have the project with me right now but I think this is the addition I made:
https://developer.apple.com/documentation/uikit/uiviewcontentmode/uiviewcontentmodescaleaspectfit |
@FranciZ Ok I did that and it works great, but the picture seems to be not vertically aligned to the center. |
If you don't wish to edit the plugin code, the following seems to work for me.
|
It would be nice to release this merged change 🙏 |
While this used to work on iOS, with Nativescript 5 and plugin versions >3.0.0 the image now gets stretched across the whole container and does not respect the aspect ratio of the image.
I'm using
The text was updated successfully, but these errors were encountered: