Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10207 (new defect)

Opened 8 months ago

Last modified 7 months ago

IE6 & 7 bug with draggable, ghosting = true

Reported by: sp00n Assigned to: thomas@fesch.at
Priority: normal Milestone: 2.x
Component: script.aculo.us Version: edge
Severity: normal Keywords: patch, tiny
Cc:

Description

Scriptaculous v1.8

Internet Explorer 6 and 7 throw an error when a draggable is set to ghosting = true. It refers to line 410 in dragdrop.js, which is delete this.element._originallyAbsolute;. In Firefox it works just fine.

Changing this line to this.element._originallyAbsolute = null; removes the problem, but I am not sure if this is a) the right way and b) helps anything at all.

According to Surendra Singhi in IE draggable probably severe ghosting bug even the following code fails in IE:

<h1 id="test"></h1>

<script>
 var x=document.getElementById('test'), fruit = new Object;
 
 fruit.size = 'large';
 delete fruit.size;  //works fine
 
 x.prop = 3;
 delete x.prop;  //throws error in IE6/7
</script> 

Attachments

dragdrop_originallyabsolute.diff (471 bytes) - added by ssinghi on 11/22/07 15:01:05.

Change History

11/22/07 15:01:05 changed by ssinghi

  • attachment dragdrop_originallyabsolute.diff added.

11/22/07 15:05:11 changed by ssinghi

  • keywords set to patch, tiny.
  • version set to edge.
  • milestone changed from 2.x to 2.0.

Attached, is the patch to fix this. The 'dragdrop4_test' was failing with the trunk & 1.8 release, on IE. This patch fixes the issue.

Cheers!

11/25/07 22:06:49 changed by david

  • milestone changed from 2.0 to 2.x.