Author: ehillenius
Date: Sat Jul 14 01:40:39 2007
New Revision: 556241
URL: http://svn.apache.org/viewvc?view=rev&rev=556241
Log:
fixed IE positioning bug
Modified:
incubator/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
Modified:
incubator/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
URL:
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js?view=diff&rev=556241&r1=556240&r2=556241
==============================================================================
---
incubator/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
(original)
+++
incubator/wicket/trunk/jdk-1.4/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
Sat Jul 14 01:40:39 2007
@@ -71,12 +71,12 @@
/**
* Position subject relative to target top-left.
- * @param subject name of the dom element to has to be positioned
- * @param target dom element to position relative to
+ * @param subject the dom element to has to be positioned
+ * @param target id of the dom element to position relative to
*/
Wicket.DateTime.positionRelativeTo = function(subject, target) {
targetPos = YAHOO.util.Dom.getXY(target);
- targetHeight = parseInt(YAHOO.util.Dom.getStyle(target, "height"));
+ targetHeight = YAHOO.util.Dom.get(target).offsetHeight;
subject.style.top = targetPos[1] + targetHeight + 1 + "px";
subject.style.left = targetPos[0] + "px";
}