This project is archived and is in readonly mode.

#264 ✓invalid
Daniel Steigerwald

better position

Reported by Daniel Steigerwald | July 25th, 2008 @ 06:35 AM | in 1.2.3

// if only valerio had implemented IE way        
    getBetterPosition: function() {
        if (!Browser.Engine.trident) return this.getPosition();
        var b = this.getBoundingClientRect(), html = this.getDocument().documentElement;
        return {
            x: b.left + html.scrollLeft - html.clientLeft,
            y: + html.scrollTop - html.clientTop

Comments and changes to this ticket

  • ByScripts

    ByScripts August 5th, 2008 @ 12:42 PM

    • Tag set to 1.2, critical, defect, element, position

    Thank you Daniel, it works fine now.

    I think it's important to fix this as soon as possible. The positioning is something frequently used (my 3 current plugins are using positioning, and a lot of plugins seen on the web are using it too)

  • Aaron Newton

    Aaron Newton October 4th, 2008 @ 02:02 AM

    • Tag changed from 1.2, critical, defect, element, position to defect, element, position

    Just checked in a fix for this.

  • Sencerd

    Sencerd November 7th, 2008 @ 04:06 PM

    Why is this tagged as a 1.3 milestone and not 1.2.2, it's a FIX, since when are fixes not released ASAP!

  • digitarald

    digitarald November 8th, 2008 @ 08:30 AM

    • Tag changed from defect, element, position to 122, defect, element, position

    @Sencerd yes, it should be for 1.2.1, but the proposed fix adds new problems, so it needs more work.

  • Tom Occhino

    Tom Occhino November 8th, 2008 @ 02:06 PM

    • Assigned user changed from “Valerio” to “Tom Occhino”
    • Milestone changed from 2.0 to 1.2.3
    • State changed from “new” to “invalid”

    this was integrated into MooTools for 1.2.1, and as it turns out... it broke many, many peoples scripts...

    im closing it as invalid since (it's already in the core and) we need to completely rewrite Element.Dimensions.js yet again...

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Referenced by