This project is archived and is in readonly mode.

#80 ✓resolved
Oskar Krawczyk

Tips shouldn't overwrite display in onHide/onShow

Reported by Oskar Krawczyk | June 29th, 2009 @ 12:33 PM

This keeps bugging me for some time now.

Here's the simple scenario; I need to fade-out a tooltip which is impossible to be done (at least without the tooltip to "jump"*).

That happens because of the this.tip.setStyle('display', 'none'); inside elementLeave(). I believe this setter should be moved to onHide() event– after doing that everything works as expected.

I'm aware that I could overwrite elementLeave() but that shouldn't be the case, since I'm already re-defining the onHide() event.

Comments and changes to this ticket

  • Nigel Holder

    Nigel Holder July 6th, 2009 @ 09:14 PM

    This was driving me nuts the other day - the addition of setStyle('display', 'none');
    to elementLeave () occurred somewhere between More 1.2.0 and 1.2.2.1

    As a temporary fix to stop any flickering / flashing I ended up working around the issue with:

    hideDelay: 0,
    onHide: function (tip, el) { tip.setStyle ('display', 'block'); ... },

  • daetherius

    daetherius August 14th, 2009 @ 05:39 AM

    Same here. Just spent this day tracking down that problem. I deleted the display:none line and everything went fine.

  • Christoph Pojer

    Christoph Pojer August 14th, 2009 @ 02:27 PM

    • State changed from “new” to “resolved”

    This will be fixed in the next release of MooTools-More

Create your profile

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

The MooTools Extensions

Tags

Pages