nativescript-image-swipe icon indicating copy to clipboard operation
nativescript-image-swipe copied to clipboard

image not fulscreen on ipad

Open softwarebam opened this issue 5 years ago • 5 comments

can set image width ro height ?

softwarebam avatar Feb 13 '20 06:02 softwarebam

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 ?

PeterStaev avatar Feb 13 '20 07:02 PeterStaev

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.

softwarebam avatar Feb 13 '20 10:02 softwarebam

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: https://github.com/PeterStaev/nativescript-image-swipe/blob/5d0284009c6c34fe7ad113299446cf740ac13039/image-swipe.ios.ts#L274-L277

PeterStaev avatar Feb 13 '20 10:02 PeterStaev

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

softwarebam avatar Feb 13 '20 12:02 softwarebam

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

PeterStaev avatar Feb 13 '20 16:02 PeterStaev