Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    32
    Answers
    4
    Vote Rating
    1
    goatkarma is on a distinguished road

      0  

    Default Unanswered: Ext.Viewport.animateActiveItem not moving to new view

    Unanswered: Ext.Viewport.animateActiveItem not moving to new view


    *skip to bottom for question, moved on a wee bit**

    I've got a login form in a panel, that once someone has successfully has logged in, should load a navigation view with an xtype: 'accountmenu'.

    The problem is that in my controller, when i try to do the following, the new view doesn't show, it just stays with the old view. It doesn't throw any reference errors so it seems to know what accountmenu is too(it's referenced in the refs of the controller). I've tried all different types of animateActiveItem, even setActiveItem but non work.

    The pertinent function in the controller:
    Code:
    signInSuccess: function () {     
            console.log('Signed in.');
            var account = this.getAccount();
            var accountmenu = this.getAccountmenu();
            account.setMasked(false);        
            Ext.Viewport.animateActiveItem(accountmenu, this.getSlideLeftTransition());         
        }
    There are two interesting things I found:
    1.If I change 'accountmenu' to 'homepanel' which is my starting navigation view when the app loads, it will transition to that view ok. I just can't figure out why it won't transition to my accountmenu view.

    2.I also changed the login form view from a ext.Panel to a ext.navigation.view, and instead of using animateActiveItem to try and show the accountmenu view, I used the push instead (see below), which worked fine, and moved to the new accountmenu view. The problem with that though was it started the navigation view 1 step too early, so had a back button which took you back to the form, plus a few other issues.
    Code:
     this.getAccountpanel().push({
            xtype: 'accountmenu'        
        });
    Anyone know where I'm going wrong trying to load the new view? I can supply more code if needed, there's quite a lot of it!

    EDIT: Right, I think it's because I haven't added the 'accountmenu' view to the viewport...maybe? Just not sure where to add it? It's an MVC app.

    EDIT again!

    Main is a tab panel with 3 tabs docked at the bottom(one of which is 'account', the login form, which once logged in should go to the 'accountmenu' navigation view). I've now managed to use
    Ext.Viewport.add('accountmenu'); on my button press event to add the view to the viewport, and then below to show the correct view once logged in:
    Code:
    Ext.Viewport.setActiveItem({
                xtype : 'accountmenu'
            });
    But alas, my tab bar has dissapeared! I can see why this is happening (the active view, main, has been replaced with 'accountmenu'), but Im not sure how to move to 'accountmenu' view whilst staying in the 'main' tab panel?

    TL : DR :How do I move between two panels within one tab panel, and stay within that tab panel?

    Think its same problem as this, but it doesnt really have a solution:
    http://www.sencha.com/forum/showthre...-another-panel

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Answers
    3447
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    So not really sure where you are... if you want to switch views within a tab panel use the setActiveItem or animateActiveItem method on the tab panel itself.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2013
    Posts
    32
    Answers
    4
    Vote Rating
    1
    goatkarma is on a distinguished road

      0  

    Default


    Hi Mitchell, think I was wording my question pretty badly, so started a new thread here which has since been fixed, thanks!

    http://www.sencha.com/forum/showthre...in-a-tab-panel

Thread Participants: 1