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

set photoview's contentSize to zoomed image size #46

Open
elephantman opened this issue Jun 7, 2012 · 0 comments
Open

set photoview's contentSize to zoomed image size #46

elephantman opened this issue Jun 7, 2012 · 0 comments

Comments

@elephantman
Copy link

hi

when 2 times tapped to an image in photoimageviewcontroller the scrollview's contentsize's height is set to 1200. this is calculated by bound.height * maxzoomlevel (in my example it is 2.5) so 480*2.5=1200

but there are many black spaces in the view i dont want to see black background i just want to see image's zoomed view

where is that calculation ? (bound.height * maxzoomlevel ) i can not find.

forexample my image's width=1200 and height=900 so when i tap 2 time and zoom to that image the scrollview's content size and bounds 1200x900 and i want to see the actual size of my image

could you help me where can i change these calculations?

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

No branches or pull requests

1 participant