On 8 fév, 12:40, "Aaron Faanes" <[EMAIL PROTECTED]> wrote:
> In Visual.Move.prototype.setup, there's the following (line 869)
> var s = this.element.style;
> var originalVisibility = s.visibility;
> var originalDisplay = s.display;
>
> if (originalDisplay == 'none') {
> s.visibility = 'hidden';
> s.display = '';
> }
>
> .... // some code that doesn't change originalDisplay
>
> if (originalDisplay == 'none') {
> s.visibility = originalVisibility;
> s.display = originalDisplay;
> }
>
> So there's no real change.
That was the intended behaviour. If I remember correctly (I should
have made a comment :/), elements with display:none are not positioned
in the document, so left/top are 0. By using visibility:hidden, the
element is repositioned in the document and you can get a value for
left/top.
So yes, it's dumb, but it's actually useful :).
--
Thomas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---