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
Diederik VerstraeteDiederik Verstraete 

Outputfields not showing correctly on the screen


I use outputField in my component but the layout keeps behaving very weird. This component is used inside an accordeon. 

my columns are shifting
<lightning:recordViewForm recordId="{!v.recordId}" objectApiName="cxsrec___cxsJob_application__c">
            <lightning:layout >
                <lightning:layoutItem flexibility="auto" padding="around-small"  >                    
                    <lightning:outputField fieldName="ja_V_Card__c" />
                    <lightning:outputField fieldName="Current_employer__c" />
                    <lightning:outputField fieldName="Aktuelles_Gehalt__c" />
                    <lightning:outputField fieldName="cxsrec__Email_address__c" />
                <lightning:layoutItem flexibility="auto" padding="around-small" >
                    <lightning:outputField fieldName="OwnerId" />
                    <lightning:outputField fieldName="cxsrec__Status__c" />
                    <lightning:outputField fieldName="dfind_Kandidatenstatus__c" />
                    <lightning:outputField fieldName="dfind_Highlighten_f_r_Kunde__c"  />

Also, I have a second question. How do I show the user profile pic/icon next to the Owner ID (e.g. Talent Peaks) in the screenshot?