Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    45
    Vote Rating
    0
    SButts is on a distinguished road

      0  

    Default Unanswered: Pause viewport refresh

    Unanswered: Pause viewport refresh


    I am removing several views from my viewport, then displaying another. Code works fine, problem is I can see each view being removed and added. Is there a way to "pause" the update of the viewport when I perform these operation and "turn it back on" when I am done?

    Thanks

  2. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    8
    Vote Rating
    0
    nodohoung is on a distinguished road

      0  

    Default


    Are you removing all view items from Viewport and then display new view items on it? So you can move all your view items of the first scene into a container, move view items of the second scene into another container, set Viewport to card layout (without animation to disable visual switching effect) and declare/add these containers as its items. Whenever you want to display a scene, call Ext.Viewport.setActiveItem to show your desired scene. You can also optionally remove last scene after the call setActiveItem

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    45
    Vote Rating
    0
    SButts is on a distinguished road

      0  

    Default


    Thanks for the idea. I will look into it.

Thread Participants: 1