Drag and drop columns bug - heres the fix...
Hi there,
In your example there is a slight bug(feature) with the drag and drop of columns. When the page is left justified to the screen there is no problem when the page is moved away to the right of the screen the dragging is offset by the distance the page is away from the left hand side of the screen. Try it in your example above.
the solution:
...
var dragStart = function(event) {
startX=event.screenX - window.screenLeft;
...
var drag = function(event) {
var x=event.screenX - window.screenLeft;
...
Great example though. Used a great deal for my work. Also the sorting on the checked column is not quite right hoping to fix this soon.
In your example there is a slight bug(feature) with the drag and drop of columns. When the page is left justified to the screen there is no problem when the page is moved away to the right of the screen the dragging is offset by the distance the page is away from the left hand side of the screen. Try it in your example above.
the solution:
...
var dragStart = function(event) {
startX=event.screenX - window.screenLeft;
...
var drag = function(event) {
var x=event.screenX - window.screenLeft;
...
Great example though. Used a great deal for my work. Also the sorting on the checked column is not quite right hoping to fix this soon.
Big AL from Sydney
September 13,