fixing positioning of color picker
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2196 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
08e5405a41
commit
6065268f32
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue