diff options
author | wei <> | 2006-07-02 04:33:04 +0000 |
---|---|---|
committer | wei <> | 2006-07-02 04:33:04 +0000 |
commit | b2f51830b7ad319f5d978b411d9bfd87f03308eb (patch) | |
tree | 77fef774116146a5f4c84dd46a529ecb30ac613f /framework/Web/Javascripts/colorpicker | |
parent | 6535233f952be866d624ad1a573562c6706138de (diff) |
Fixed #226 and #246
Diffstat (limited to 'framework/Web/Javascripts/colorpicker')
-rw-r--r-- | framework/Web/Javascripts/colorpicker/colorpicker.js | 4 | ||||
-rwxr-xr-x | framework/Web/Javascripts/colorpicker/spacer.gif | bin | 0 -> 43 bytes |
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/colorpicker/colorpicker.js b/framework/Web/Javascripts/colorpicker/colorpicker.js index 06cfb037..acf5531c 100644 --- a/framework/Web/Javascripts/colorpicker/colorpicker.js +++ b/framework/Web/Javascripts/colorpicker/colorpicker.js @@ -68,7 +68,7 @@ Object.extend(Prado.WebUI.TColorPicker.prototype, {
var constructor = mode == "Basic" ? "getBasicPickerContainer": "getFullPickerContainer"
this.element = this[constructor](this.options['ID'], this.options['Palette'])
- document.body.appendChild(this.element);
+ this.input.parentNode.appendChild(this.element);
this.element.style.display = "none";
if(Prado.Browser().ie)
@@ -90,7 +90,7 @@ Object.extend(Prado.WebUI.TColorPicker.prototype, {
if(!this.showing)
{
- var pos = Position.cumulativeOffset(this.input);
+ var pos = Position.positionedOffset(this.input);
pos[1] += this.input.offsetHeight;
this.element.style.top = (pos[1]-1) + "px";
diff --git a/framework/Web/Javascripts/colorpicker/spacer.gif b/framework/Web/Javascripts/colorpicker/spacer.gif Binary files differnew file mode 100755 index 00000000..fc256098 --- /dev/null +++ b/framework/Web/Javascripts/colorpicker/spacer.gif |