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

image not fulscreen on ipad #57

Open
softwarebam opened this issue Feb 13, 2020 · 5 comments
Open

image not fulscreen on ipad #57

softwarebam opened this issue Feb 13, 2020 · 5 comments

Comments

@softwarebam
Copy link

can set image width ro height ?

@PeterStaev
Copy link
Owner

Hey @softwarebam , the image is automatically resized so that it fills in the lowest dimension of the screen. May be you need the same as #25 ?

@softwarebam
Copy link
Author

It seem not resize image to fill in the lowest dimension of screen in some devices.
I find the issue on iPhone 11 (iOS 13) and iPad air2 (iOS 13) as shown below.
05FD2D60-0D06-42CA-86C2-232A649ECA25

The devices need to change orientation, so the image is resized and fill in the lowest dimension of screen properly.

I use nativescript 6.4.

@PeterStaev
Copy link
Owner

Is the image high enough resolution? If it is not then it will not work, since the plugin sets the max possible scale to be 1.0:

zoomScrollView.contentSize = imageView.frame.size;
zoomScrollView.minimumZoomScale = minimumScale;
zoomScrollView.zoomScale = minimumScale;
zoomScrollView.maximumZoomScale = this.allowZoom ? 1.0 : minimumScale;

@softwarebam
Copy link
Author

Yes, the image is too small. Is it possible to auto zoom to fill in the lowest dimension of screen?

@PeterStaev
Copy link
Owner

Currently this is not possible, marking it as an enhancement as it makes sense to have an option to allow such behavior.

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

No branches or pull requests

2 participants