got it!

reveal:

onShow: function (div) {

  //div.isVisible() -> true
}
onHide: function (div) {

  //div.isVisible() -> false
}


On Fri, Dec 4, 2009 at 11:25 PM, Aaron Newton <[email protected]> wrote:

> Ah. this is a limitation of the implementation of Fx.Reveal, which
> integrates into Fx.Morph. Fx.Reveal runs the transition to fade and shrink
> your element (which then fires an oncomplete event) and then it hides it and
> fires an onHide event. If you changed this to onHide instead of onComplete,
> you'd get the result you're after...
>
>
> On Fri, Dec 4, 2009 at 4:59 PM, Thierry bela nanga <[email protected]>wrote:
>
>> In that case,
>>
>> we have to check that all parents are visible,
>>
>>
>> this code should alert(false), but surprisingly in firefox I've got true,
>> the element has been wrapped in a div with style display:none
>>
>>
>> window.addEvent('domready', function () {
>>
>> var div = document.getElement("div").set("reveal", {duration: 3000,
>> onComplete: function () {
>>
>> alert(div.isVisible())
>> }
>>     });
>>
>> div.get('reveal').dissolve()
>> })
>>
>>
>> On Fri, Dec 4, 2009 at 10:30 PM, Aaron Newton <[email protected]> wrote:
>>
>>> I think I disagree here. If an element has a height or a width, it can be
>>> affecting the page flow (even without a height or width it can, but it's far
>>> less likely that it is).
>>>
>>>
>>> On Thu, Dec 3, 2009 at 1:21 PM, Oskar Krawczyk <[email protected]
>>> > wrote:
>>>
>>>> Pull, modify (you edit the code using GitHub's web interface), push.
>>>>
>>>> ___
>>>>
>>>> Oskar Krawczyk
>>>> http://nouincolor.com
>>>>
>>>>
>>>>
>>>> On Thu, Dec 3, 2009 at 5:27 PM, Thierry bela nanga <[email protected]>wrote:
>>>>
>>>>>
>>>>> the current returned value is,
>>>>>
>>>>> return (w == 0 && h == 0) ? false : (w > 0 && h > 0) ? true :
>>>>> this.isDisplayed();
>>>>>
>>>>> and should be,
>>>>>
>>>>>
>>>>> return (w == 0 || h == 0) ? false : (w > 0 && h > 0) ? true :
>>>>> this.isDisplayed();
>>>>>
>>>>>
>>>>> --
>>>>> http://tbela99.blogspot.com/
>>>>>
>>>>> fax : (+33) 08 26 51 94 51
>>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> http://tbela99.blogspot.com/
>>
>> fax : (+33) 08 26 51 94 51
>>
>
>


-- 
http://tbela99.blogspot.com/

fax : (+33) 08 26 51 94 51

Reply via email to