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

View File

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