I have set up a new form using both of these:
The second lookup includes an image so I have included that in the lookup results. Most of the time it works perfectly, and displays results like this:
But sometimes it will mess up the sizing and instead display like this:
It seems to be a very intermittent bug. I have tried clearing the browsers cache, using different browsers, and it will mostly work fine, but maybe once in every 10 to 20 times it will render incorrectly. When this happens, I close the form, create a new one, and it will always work perfectly that second time (and a random number of times after that as well).
I haven't noticed any errors logged in the browsers console to indicate a problem. I have also tried removing all CSS in the form, and even simplifying the template var but none of them have had any effect.
It might be worth noting that this form is launched from another forms edit page in a list control.
Any ideas how I could go about fixing this?