[Webkit-unassigned] [Bug 14054] REGRESSION: cupid.com uses iframe.document to make content visible
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 13 12:14:23 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14054
jennifer at cupid.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jennifer at cupid.com
------- Comment #4 from jennifer at cupid.com 2007-07-13 12:14 PDT -------
Hi,
I'm a developer for Cupid.com, and I have started to work on this issue. I
tried using the "ownerDocument" property, but the page heights still aren't
calculating correctly. They keep getting longer and longer as I click on
different pages, no matter what height they're supposed to be. The same code in
Opera 9.10 works better; but sometimes it cuts off the very bottom of long
pages. Would it be possible for you to look at my code and see if I'm doing
anything wrong here; I'm not very familiar with Macs and doing a Google search
on this topic didn't help me much. Here is the block of code that I added for
the WebKit and Opera browsers:
if (userAgent.indexOf('applewebkit/522+') != -1 ||
userAgent.indexOf('opera/9.10') != -1)
{
var the_height= document.getElementById
("iframe").ownerDocument.body.offsetHeight;
//change the height of the iframe
document.getElementById("iframe").height = (the_height);
document.getElementById("mainBody").height = (the_height + 50);
}
Thanks,
-Jen
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list