Fixed Issue 164: Colorpicker doesn't display correctly on Firefox 1.5.x by updating to latest version of jGraduate

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@558 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-09-04 13:25:35 +00:00
parent 14f42e8621
commit b6970bf6db
2 changed files with 18 additions and 12 deletions

View File

@ -52,6 +52,7 @@ li.jGraduate_tab_current {
display: none;
border: outset 1px #666;
padding: 10px 7px 5px 5px;
overflow: auto;
}
.jGraduate_tabs {
@ -63,7 +64,7 @@ li.jGraduate_tab_current {
}
div.jGraduate_Swatch {
display: inline-block;
float: left;
margin: 8px;
}
div.jGraduate_GradContainer {
@ -90,13 +91,13 @@ div.jGraduate_Opacity {
}
div.jGraduate_OpacityField {
margin-top: 110px;
margin-left: -10px;
position: absolute;
bottom: 25px;
left: 292px;
}
div.jGraduate_Form {
display: inline-block;
vertical-align: top;
float: left;
width: 140px;
margin: -3px 3px 0px 4px;
}
@ -107,8 +108,7 @@ div.jGraduate_StopSection {
}
div.jGraduate_OkCancel {
display: inline-block;
vertical-align: top;
float: left;
width: 113px;
}
@ -123,13 +123,17 @@ input.jGraduate_Ok {
}
.colorBox {
display: inline-block;
float: left;
height: 16px;
width: 16px;
border: 1px solid #808080;
vertical-align: -7px;
cursor: pointer;
margin: 4px;
margin: 4px 4px 4px 30px;
}
.colorBox + label {
float: left;
margin-top: 7px;
}
label.jGraduate_Form_Heading {
@ -151,6 +155,7 @@ div.jGraduate_Form_Section {
margin: 2px;
width: 110px;
text-align: center;
overflow: auto;
}
div.jGraduate_LightBox {

View File

@ -387,8 +387,9 @@ jQuery.fn.jGraduate =
// handle dragging the stop around the swatch
var draggingStop = null;
var startx = -1, starty = -1;
// for whatever reason, Opera does not allow $('image.stop') here
$('.stop').mousedown(function(evt) {
// for whatever reason, Opera does not allow $('image.stop') here,
// and Firefox 1.5 does not allow $('.stop')
$('.stop, #gradPicker_jgraduate_svg image').mousedown(function(evt) {
draggingStop = this;
startx = evt.clientX;
starty = evt.clientY;