[SalesForce] VisualForce page will not scroll on Salesforce1 app

I have created a dashboard like visual force page with several components that retrieve account information, revenue data, stock information, twitter feeds, chatter, and show some attached images. I've gotten to where I can see the page but when it loads, I can't scroll down to see the data on my phone. Using the one.app in Chrome on my desktop, I can scroll using the imbedded scrollbar.

Any ideas?

Best Answer

None of the above suggestions worked. I ended up opening a case with support and after some time, we found a solution to the problem. It seams that when the page is rendered for the Salesforce1 app, there is some code or HTML that is still generated for the header for a standard desktop browser. We were able to correct the scrolling by setting the "showHeader" attribute on the tag to be false. After setting it to false, the scrolling worked and it didn't matter so much if you used an or tag for the page.

I have a test in the controller to determine if the page is being rendered for a web browser on a desktop or in a Salesforce1/app.one application. I use this to either show one form of the page with two columns for a desktop or single column for the Salesforce1/app.one. I use the same variable to set the value for the showHeader attribute so that rendering for the different platforms is automatic.

I hope this helps someone else save weeks of trying to figure out what to do. There will be a Knowlegebase article on Salesforce.com soon.

Related Topic