Author: sergeyhalipov
Date: 2008-05-02 08:23:07 -0400 (Fri, 02 May 2008)
New Revision: 8400
Modified:
trunk/ui/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/scripts/datafilterslider.js
Log:
http://jira.jboss.com/jira/browse/RF-2825
Modified:
trunk/ui/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/scripts/datafilterslider.js
===================================================================
---
trunk/ui/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/scripts/datafilterslider.js 2008-05-02
12:03:50 UTC (rev 8399)
+++
trunk/ui/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/scripts/datafilterslider.js 2008-05-02
12:23:07 UTC (rev 8400)
@@ -215,7 +215,10 @@
span.style.left = this.translateToPx(range.start);
this.handles.each(function(h) {
- span.style.width = $(h.id).offsetLeft + 'px';
+ var offLeft = $(h.id).offsetLeft;
+ if (offLeft >= 0) {
+ span.style.width = offLeft + 'px';
+ }
});
//original code from prototype 1.6.5