[richfaces-svn-commits] JBoss Rich Faces SVN: r13441 - trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/scripts.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Wed Apr 8 12:14:34 EDT 2009
Author: pyaschenko
Date: 2009-04-08 12:14:33 -0400 (Wed, 08 Apr 2009)
New Revision: 13441
Modified:
trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/scripts/ui.colorpicker.js
Log:
https://jira.jboss.org/jira/browse/RF-6685
Modified: trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/scripts/ui.colorpicker.js
===================================================================
--- trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/scripts/ui.colorpicker.js 2009-04-08 16:06:25 UTC (rev 13440)
+++ trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/scripts/ui.colorpicker.js 2009-04-08 16:14:33 UTC (rev 13441)
@@ -322,7 +322,9 @@
this.picker.css('visibility', 'hidden').css('display', 'block');
- var elementRect = Richfaces.jQuery.getElementRectangle(this.element);
+ var input = $(this.options.clientId.toString()+' input');
+ var inputOffsets = input.offset();
+ var elementRect = {left:inputOffsets.left, top: inputOffsets.top, width: this.element.width(), height:input.outerHeight()}//Richfaces.jQuery.getElementRectangle(this.element);
Richfaces.jQuery.position(elementRect, this.picker);
this.picker.css('visibility', 'visible');
More information about the richfaces-svn-commits
mailing list