function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Robert SpearRobert Spear 

Visual Force page display in Salesforce App

Hi everyone! I'm very new to Salesforce and was wondering if anyone had encountered issues using a Visualforce page linked to a custom object in the app (version 16.3 running on iOS 11). When I open the custom object and create a new record, every time I select the value in a picklist I'm brought back to the top of the screen. I referred to the following fix (https://success.salesforce.com/issues_view?id=a1p30000000T2oLAAS) which I appended to my code but I can't seem to make it such that when a user clicks on a picklist and edits its value, the screen doesn't shift up when the picklist dropdown disappears.
Thanks in advance for any help you can provide :) 
Best Answer chosen by Robert Spear
Khan AnasKhan Anas (Salesforce Developers) 
Hi Robert,

I trust you are doing very well.

Yes, it is a known issue and is still not fixed.

Try to add this in your code and check the output:
<style>
            html, body {
                height: 100%;
                overflow: auto;
                -webkit-overflow-scrolling: touch;
            }
</style>

You can also find the workaround to it and here is the link to the solution.

https://bitbucket.org/snippets/appirioux/nyyek


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Robert,

I trust you are doing very well.

Yes, it is a known issue and is still not fixed.

Try to add this in your code and check the output:
<style>
            html, body {
                height: 100%;
                overflow: auto;
                -webkit-overflow-scrolling: touch;
            }
</style>

You can also find the workaround to it and here is the link to the solution.

https://bitbucket.org/snippets/appirioux/nyyek


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Robert SpearRobert Spear
Thank you very much Khan :) 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Robert,

It's my pleasure. I’m glad I was able to help!

Kindly mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue. *(After you choose the best answer the question is marked as “resolved”)*

May the (Sales)force be with you :)
Happy Learning!

Regards,
Khan Anas