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
Andreas WissmeyerAndreas Wissmeyer 

Better placement of the "Edit field" box in a Salesforce 1 page

Hello all, using the below HTML-Visualforce code...
                        <apex:outputField value="{!account.Last_Status__c}">
                               <apex:inlineEditSupport event="onclick" rendered="true"/>

... my outputField is formatted exactly how I want, but I don't have any control on the positioning of the related Edit window once I click on the field I want to modify: result in Salesforce1 Lightning app is a disaster!

Does anyone know how to get control on this window in order to place it in the middle of the screen?

Thanks in advance for your help on this. Cheers from Germany

Best Answer chosen by Andreas Wissmeyer
Andreas WissmeyerAndreas Wissmeyer

I answer myself to this one:

apex:inlineEditSupport is far from being optimized for Salesforce1. My workaround consisted in REPLACING inline Edit Support...

<td><apex:outputField value="{!account.Last_Status__c}">
       <apex:inlineEditSupport event="onclick" rendered="true"/>
...with the following input Field:
<td><apex:inputField style="width:150px;height:50px" id="Status" required="false" value="{!account.Last_Status__c}"/></td>
Hurrah to me! Andreas