Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Handling Main View Creation

  1. #11
    Sencha User
    Join Date
    Dec 2013


    Quote Originally Posted by dsanabria View Post
    Did anyone find a solution for the modern application? I have the classic portion of the project working, but not the modern version. I have tried setting the mainView on the launch function, but it is not working. I have tried adding it to the viewport and it doesn't work either. Hopefully someone has got it to work.
    I had the same problem. I solved putting the me.callParent after the setMainView in onBeforeLaunchMethod

    You could try with this:

    onBeforeLaunch: function():
    var me = this;
    I hope it will be usefull

  2. #12
    Sencha Premium User
    Join Date
    Oct 2015
    Arvada, CO


    I was trying to set the main view after the launch method, which worked in sencha app watch, but after building the production version, I was missing Ext.plugin.Viewport, so requiring that file is absolutely key if you call setMainView manually... I kept getting the good ole friend of c is not a constructor which is not helpful. Thank you for that insight wolfganga!

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 20 Dec 2014, 12:16 PM
  2. Replies: 2
    Last Post: 13 Mar 2014, 7:45 AM
  3. Replies: 2
    Last Post: 21 Jan 2014, 8:17 PM
  4. [FIXED] Unable to fire events from map view until map view is added to the main view.
    By bweiler in forum Sencha Touch 2.x: Bugs
    Replies: 7
    Last Post: 11 Feb 2012, 1:50 PM
  5. Replies: 2
    Last Post: 10 Feb 2012, 9:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts