Bugs item #2892939, was opened at 2009-11-05 16:00
Message generated for change (Comment added) made by franklin99
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2892939&group_id=47038Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Frank Lin (franklin99)
Assigned to: Nobody/Anonymous (nobody)
Summary: HtmlUnit returns incorrect offsetHeight of element
Initial Comment:
Firefox returns 19; HtmlUnit returns 0 for offsetHeight of a nested div element.
Just load war/Hello.html GWT app to demonstrate the problem.
----------------------------------------------------------------------
>Comment By: Frank Lin (franklin99)
Date: 2009-11-05 17:04
Message:
Another reduced case: offsetHeight and offsetTop were both incorrect.
<html>
<head>
<script language='javascript'>
function test() {
var popupContent = document.getElementsByClassName("popupContent");
var gwtLabel = document.getElementsByClassName("gwt-Label");
alert(popupContent[0]['offsetHeight']);
alert(popupContent[0]['offsetLeft']);
alert(popupContent[0]['offsetTop']);
}
</script> </head>
<body onload="javascript:test()">
<div class="popupContent"><div style="height: 128px; width: 384px;"
class="gwt-Label">foo</div></div>
</html>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2892939&group_id=47038------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop