Author: pyaschenko
Date: 2010-05-27 10:55:42 -0400 (Thu, 27 May 2010)
New Revision: 17319
Modified:
root/core/trunk/impl/src/main/resources/META-INF/resources/jquery.position.js
Log:
https://jira.jboss.org/browse/RF-8676
Modified: root/core/trunk/impl/src/main/resources/META-INF/resources/jquery.position.js
===================================================================
---
root/core/trunk/impl/src/main/resources/META-INF/resources/jquery.position.js 2010-05-27
14:40:53 UTC (rev 17318)
+++
root/core/trunk/impl/src/main/resources/META-INF/resources/jquery.position.js 2010-05-27
14:55:42 UTC (rev 17319)
@@ -1,6 +1,6 @@
/**
* @fileOverview jQuery setPosition Plugin to place elements on the page
- * @author Pavel Yaschenko
+ * @author Pavel Yaschenko, 05.2010
* @version 0.5
*/
@@ -260,14 +260,14 @@
rect.height = rect.height || 0;
var left = parseInt(element.css('left'),10);
- if (isNaN(left)) {
+ if (isNaN(left) || left==0) {
left = 0;
element.css('left', '0px');
}
if (isNaN(rect.left)) rect.left = left;
var top = parseInt(element.css('top'),10);
- if (isNaN(top)) {
+ if (isNaN(top) || top==0) {
top = 0;
element.css('top', '0px');
}
@@ -287,7 +287,6 @@
}
// jQuery does not support to get offset for hidden elements
- // TODO add qunit test
var hideElement=false;
var eVisibility;
var e;