Brooklyn iFrame Bug

  • 2
  • Problem
  • Updated 2 years ago
In Brooklyn, an iFrame embedded in a template field is not rendering correctly. I have the width set to 100% and the height to 500 px, and the frame is rendering much smaller.

Photo of Brayden Smith

Brayden Smith

  • 1,078 Points 1k badge 2x thumb

Posted 2 years ago

  • 2
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
Could you post your iFrame html?
Photo of Brayden Smith

Brayden Smith

  • 1,078 Points 1k badge 2x thumb
<iframe src="[WebAddress]/apex/ATT_EXP__ViewAll?id={{$Model.Ticket_TPU.data.0.Id}}&folder={{#encodeUrl}}{{$Model.Ticket_TPU.data.0.Vendor_Name__c}}{{/encodeUrl}}&parentfield=Ticket__c&listfields=&maxsize=&storageprofile=default&createfields=&showfieldsonupdate=true" width="100%" height="500px" frameborder=0/>
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
I had a similar issue where my iFrames stopped working, and I fixed it by selecting 'Allow HTML.'

I don't always know how many { }'s to put in there when it's inside of quotes. You could try throwing on an extra set.
Photo of Brayden Smith

Brayden Smith

  • 1,078 Points 1k badge 2x thumb
I have 'Allow HTML' enabled, but the ifames still are not sized correctly. Maybe this will be fixed over time.