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

Ticket #9264 (new defect)

Opened 9 months ago

Problem with Droppables in IE 7

Reported by: jfbutkiewicz Assigned to: madrobby
Priority: normal Milestone: 2.x
Component: script.aculo.us Version: edge
Severity: major Keywords:
Cc:

Description

Hi,

I am using a TafelTree (based on scriptaculous) for my works, and with a big tree into a small div, the tree will show scrollbars. the problem comes with the elements of the tree, all move right (pictures, lines) with scrollbars except the Text, fixed... (works right with FireFox) you can see the facts with this picture : http://www.bubcorp.com/tafel.jpg

The problem comes with the droppables in scriptaculous (dragdrop.js, Droppables method add) with a fix for IE which doesn't work with IE 7 :

        Element.makePositioned(element); // fix IE

I remplace this with this scriptlet to workaround with IE7

    var agent = navigator.userAgent.toLowerCase();
    var major = parseInt(navigator.appVersion);
    if ((((agent.indexOf("msie") != -1) && (agent.indexOf("opera") == -1)) && (major == 4) && (agent.indexOf("msie 7.") != -1)) == false) {
        Element.makePositioned(element); // fix IE
    } 

maybe it's in prototype, but i think that IE7 changes wthe way to work with these elements...

regards, JFB