Author: pyaschenko
Date: 2010-10-14 07:51:14 -0400 (Thu, 14 Oct 2010)
New Revision: 19568
Modified:
sandbox/trunk/prototypes/calendar/calendar.js
Log:
https://jira.jboss.org/browse/RF-9152
https://jira.jboss.org/browse/RF-9168
position fixing
Modified: sandbox/trunk/prototypes/calendar/calendar.js
===================================================================
--- sandbox/trunk/prototypes/calendar/calendar.js 2010-10-14 10:21:53 UTC (rev 19567)
+++ sandbox/trunk/prototypes/calendar/calendar.js 2010-10-14 11:51:14 UTC (rev 19568)
@@ -1689,7 +1689,8 @@
if (!elements.length) elements = [elements];
offset = offset || {left:0,top:0};
var width = jqe.outerWidth()+"px", height =
jqe.outerHeight()+"px";
- var left = jqe.css("left")+offset.left+"px", top =
jqe.css("top")+offset.top+"px";
+ var pos = jqe.position();
+ var left = Math.round(pos.left)+offset.left+"px", top =
Math.round(pos.top)+offset.top+"px";
var element;
for (var i = 0; i<elements.length;i++) {
element = elements[i];