- This topic has 12 replies, 6 voices, and was last updated 11 years, 11 months ago by
Rathinavel.
-
AuthorPosts
-
saravananMemberHi,
I am developing an app in which i need to achieve pinch and zoom for images . Since i am new to mobile apps development , can anybody help with this problem.July 3, 2013 at 3:30 pm #340562
support-octavioMemberHi saravanan,
We have no plans to support general pinch-zoom across any screen as it will dork up the layout engine. It is fairly common among mobile ui frameworks to disable scaling across the app, e.g., mobione, jquery mobile, jqtouch, sencha …. all do this. We are investigating pinch-zoom for images only but have not committed to it at this time. Please share how you would like zoom to work in your project(s).
July 3, 2013 at 11:19 pm #340569
saravananMemberHi,
Actually in my application, we provide a image in the last column of a table. when the user clicks on the image , the image should enlarge so that the user can see the image clearly.This is my requirement.
Can i get suggestions on this requirement.July 4, 2013 at 2:50 am #340575
Stu WadeMemberHi,
Might I suggest a workaround for your problem …
If the small image is made clickable you can use the on click to transit to a page containing a larger image and a back button.
July 8, 2013 at 10:07 am #340657
RathinavelMemberHi Saravanan,
As Stu Wade said, there can be an image placed at the onClick event and redirect to another page
where the actual image is placed.
and my solution for the same would be
Instead of making the screen to be pinch and zoom (you need to add heavy files for supporting this),
you can just add the image inside a panel and add the css property for that panel as below:
overflow-x: scroll; overflow-y: scroll;
these two lines should solve your problem. 🙂
Please Let me know how this works.
Cheers..!
July 9, 2013 at 1:02 am #340675
steven168hMember@Rathinavel wrote:
Hi Saravanan,
As Stu Wade said, there can be an image placed at the onClick event and redirect to another page
where the actual image is placed.
and my solution for the same would be
Instead of making the screen to be pinch and zoom (you need to add heavy files for supporting this),
you can just add the image inside a panel and add the css property for that panel as below:
overflow-x: scroll; overflow-y: scroll;
these two lines should solve your problem. 🙂
Please Let me know how this works.
Cheers..!
you means add the code into the filename.www > filename.css, right?
July 15, 2013 at 10:38 am #340809
RathinavelMemberHI Steven,
you can use a separate css file and start to add those lines under the panel id.
July 17, 2013 at 3:09 am #340847
paulDMemberHey Rathinavel,
Just a quick question with this method. How do you get the image to be larger than the panel? Any chance you could do a very quick demo?
Thanks
Paul
July 21, 2013 at 9:54 am #340935
RathinavelMemberhi Paul,
I will post a demo of it in coming days…
right now little bit busy with my daily routine 😉
but surely i will post a demo of it asap… 🙂 its on my list of experiments to be done 😉
July 25, 2013 at 10:06 am #341042
RathinavelMemberHi Paul,
please see the attached which has the scroll bars 🙂
please let me know know any innovations 🙂
Attachments:
You must be logged in to view attached files.July 26, 2013 at 3:19 am #341053
paulDMemberVel,
Thanks for taking the time out to do this. I now understand! I couldn’t figure out how to make the image larger than the panel.
By setting the css height and width and using the css overflow y and y it works!
in the words of Homer Simpson DOH…….
one day i’m going to get this html css stuff down………. maybe
Thanks again
Paul
July 26, 2013 at 3:29 am #341054
paulDMemberOk, i can’t get this to work on a device as a web app. i’ve tried IPAD and Galaxy s3
not tried as a native app but it works in the test centre? No scroll bars appear?
Paul
July 26, 2013 at 10:51 am #341060
RathinavelMemberHi Paul,
from your reply, I understood that you tried something with the shared example.
I don’t have any devices(iPhone or iPad) to test the apps. 🙁
That’s one of the drawbacks from my side. 🙁
might be some one like @Cincyplanet, Stu, Support-Wayne, Support-Octavio who work with real time application can lend their hands to help us :).
-
AuthorPosts