From 6065268f328dd7a468911eed47773be5e7190f60 Mon Sep 17 00:00:00 2001 From: Mark MacKay Date: Wed, 28 Nov 2012 02:08:13 +0000 Subject: [PATCH] fixing positioning of color picker git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2196 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index cd86634e..0157831f 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -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,