This is a slightly worse version of the problem that I had when displaying the return HTML from a webscript in a simple dialog (which is in escence what you are doing here). The problem is a div wrapper / class name / css issue.
All I can suggest is that you look at the div structure / class names / css when displaying the standard content that works and look for the differences when you display your pop up.
Good luck
Bob Johnson