fixing positioning of color picker

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2196 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Mark MacKay 2012-11-28 02:08:13 +00:00
parent 08e5405a41
commit 6065268f32
1 changed files with 2 additions and 2 deletions

View File

@ -3359,10 +3359,10 @@
var paint = paintBox[picker].paint;
var title = (picker == 'stroke' ? 'Pick a Stroke Paint and Opacity' : 'Pick a Fill Paint and Opacity');
var was_none = false;
var pos = elem.position();
var pos = elem.offset();
$("#color_picker")
.draggable({cancel:'.jGraduate_tabs, .jGraduate_colPick, .jGraduate_gradPick, .jPicker', containment: 'window'})
.css(curConfig.colorPickerCSS || {'left': pos.left, 'bottom': 50 - pos.top})
.css(curConfig.colorPickerCSS || {'left': pos.left-140, 'bottom': 40})
.jGraduate(
{
paint: paint,