On 5/7/07, Christoph Diefenthal <[EMAIL PROTECTED]> wrote:

> The Problem:
> --------
> There are two state, in which both do the same:
> Set the selectedIndex of a ViewStack to 1.
> But when you execute them one after another. The second to be executed
> always sets the selectedIndex to 0 !

Bug in ViewStack.

Change this line in the selectedIndex setter:

                // Bail if the index isn't changing.
                if (value == _selectedIndex)
                        return;

To this:

                // Bail if the index isn't changing.
                if (value == selectedIndex)
                        return;

That should do the trick.

Reply via email to