Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329941 - viewport size should be configurable
Summary: viewport size should be configurable
Status: RESOLVED WONTFIX
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 14:38 EST by Amar Mattey CLA
Modified: 2011-01-14 10:23 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amar Mattey CLA 2010-11-10 14:38:16 EST
Build Identifier: rap-runtime-1.4.0-M2-20100928-1646

Device : iPhone 4

I have a login page on iphone, when I try to enter the user name and password, iphone automatically zooms. When I click Login, the next screen is opened in the previous screen zoom resolution. It would be nice to allow the viewport size to be shrinked to normal during next page transition or atleast leaving the ability to developer to judge what should happen.

The hardcoded value in rw-index.html is     <meta name = "viewport" content = "initial-scale = 1.0, minimum-scale = 1.0" >
I need a value of   <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>


Reproducible: Always
Comment 1 Tim Buschtoens CLA 2010-11-11 05:56:30 EST
Okay, first of all i don't think there is any way to control the zoom on mobile Safari at runtime. You can control it to some extend using the meta-tags, but it can't be influenced after those are parsed. (I would be happy to be proven wrong on this.) So changing back the zoom automatically is not an option.

If you want to disable zoom completely, you can always add a link to the application to your homescreen. It should then be started in fullscreen and with zooming disabled. If this is sufficient for your, i will close the bug. Otherwise we will have to see about other options...
Comment 2 Amar Mattey CLA 2010-11-11 10:34:48 EST
I was not trying to control the scroll, I was looking at options. I would like to disable the scroll completely if I can.

What you are saying is have a welcome screen other than my RAP Startup page, and I could start my RAP from there. Is that right?

I will give this a shot and see how it works, I will update with my finding.
Comment 3 Tim Buschtoens CLA 2011-01-14 10:23:03 EST
Since there was no more input from the reporter, i will close this as wontfix, assuming the issue is solved for him. Bug may be reopend should new information arise.