Opened 8 years ago

Closed 8 years ago

#13876 closed defect (wontfix)

Page transation of type "slide" behaves differently when using two separate pages

Reported by: Paul Christopher Owned by: ykami
Priority: high Milestone: 1.7
Component: DojoX Mobile Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:

Description

Perform a slide transation between two views: It works perfect. The old view slides out, the new view slides in.

Now perform a slide transation between two separate html pages, e.g. by using

<li dojoType="dojox.mobile.ListItem" rightText="AcmePhone" href="anotherPage.html" transition="slide">

The old page will slide out nicely, but the new page will pop up suddenly (and not slide in smoothly).

[Maybe this is obsolete in future. But at the moment, dojox.mobile.app is not really production ready and therefore I split up my larg app in several pages]

Change History (3)

comment:1 Changed 8 years ago by ykami

I don't know if it is a general requirement many people want. If not, I don't want to introduce unnecessary code bloat. I'm not sure the inter-page transition works with any animations other than slide.

BTW, I think you could do it by yourself. For example, create a blank view like this,

<div id="blank" dojoType="dojox.mobile.View" selected="true"></div>

and then, make a transition to your initial view at page load.

dojo.ready(function(){
    setTimeout(function(){
        dijit.byId("blank").performTransition("firstView", 1, "slide");
    });
});

comment:2 in reply to:  1 Changed 8 years ago by Paul Christopher

Yes, you are right. It doesn't make much sense to bloat the code with that and to keep on optimizing interpage transitions, see http://bugs.dojotoolkit.org/ticket/13996. In future, when we have an app controller such as dojox.app, we propably won't need it anymore. And the mentioned workaround does it for me. Thanks!

comment:3 Changed 8 years ago by ykami

Milestone: tbd1.7
Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.