diff --git a/js/makegrid.js b/js/makegrid.js index f12ece5678..6a6cedae2d 100644 --- a/js/makegrid.js +++ b/js/makegrid.js @@ -40,8 +40,7 @@ width: $(obj).width() }); $(this.cPointer).css({ - top: objPos.top - 10, - left: objPos.left + top: objPos.top, }); } else { // vertical alignment $(this.cCpy).css({ @@ -52,7 +51,6 @@ }); $(this.cPointer).css({ top: objPos.top, - left: objPos.left }); } @@ -105,19 +103,23 @@ colPos.left : colPos.left + $(hoveredCol).outerWidth(); $(this.cPointer) - .css('left', newleft) - .show(); + .css({ + left: newleft, + visibility: 'visible' + }); } else { // vertical alignment var newtop = newn < this.colMov.n ? colPos.top : colPos.top + $(hoveredCol).outerHeight(); $(this.cPointer) - .css('top', newtop) - .show(); + .css({ + top: newtop, + visibility: 'visible' + }); } } else { // no movement to other column, hide the column pointer - $(this.cPointer).hide(); + $(this.cPointer).css('visibility', 'hidden'); } } } @@ -168,7 +170,7 @@ left: g.colMov.objLeft }, 'fast') .fadeOut(); - $(this.cPointer).stop(true, true).hide(); + $(this.cPointer).css('visibility', 'hidden'); this.colMov = false; } @@ -381,7 +383,7 @@ // adjust g.cPoint g.cPointer.className = g.alignment != 'vertical' ? 'cPointer' : 'cPointerVer'; - $(g.cPointer).hide(); + $(g.cPointer).css('visibility', 'hidden'); // adjust g.dHint g.dHint.className = 'dHint'; diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index c1f48a633f..d3c9468aac 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -1897,6 +1897,7 @@ span.mysql-number { background: url(getImgPath(); ?>col_pointer.png); height: 20px; margin-left: -5px; /* must be minus half of its width */ + margin-top: -10px; position: absolute; width: 10px; } diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 9e55f4200b..65cf285967 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -2249,6 +2249,7 @@ span.mysql-number { background: url(./themes/pmahomme/img/col_pointer.png); height: 20px; margin-left: -5px; /* must be minus half of its width */ + margin-top: -10px; position: absolute; width: 10px; } @@ -2277,4 +2278,4 @@ span.mysql-number { -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; -} \ No newline at end of file +}