Added jQuery UI and draggable component; Fixed issue 147: Ability to move the colorpicker around

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@698 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2009-09-23 18:15:29 +00:00
parent 9e70447b5d
commit 1c098d89cb
4 changed files with 28 additions and 1 deletions

View File

@@ -951,7 +951,10 @@ function svg_edit_setup() {
was_none = true;
}
var pos = elem.position();
$('#color_picker').css({'left': pos.left, 'bottom': 50 - pos.top}).jGraduate(
$("#color_picker")
.draggable({cancel:'.jPicker_table,.jGraduate_lgPick'})
.css({'left': pos.left, 'bottom': 50 - pos.top})
.jGraduate(
{
paint: paint,
window: { pickerTitle: title },