Results 1 to 2 of 2

Thread: Ext.Viewport.removeAll(true, true); Fails Miserably on Android on HTC Inspire

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Vote Rating

    Default Unanswered: Ext.Viewport.removeAll(true, true); Fails Miserably on Android on HTC Inspire

    Where is my test panel? This example demonstrates the user is left with a blank page after removeAll(true, true); is executed. Apparently there is another bug that requires me to set _activeItem to null, but let's not fixate on that little detail. Let's discuss why the user does not see the new panel with the words "Test Panel" in the upper-left corner.

    By the way, this works fine in Chrome version 17.0.963.56 m

    Sencha Touch Version: rc2

                                Ext.Viewport.removeAll(true, true);          
                                Ext.Viewport._activeItem = null;
                                var newParentPanel = Ext.create('Ext.Container', {
                                    title: 'Test Container',
                                    fullscreen: true,
                                    layout: {
                                        type: 'vbox',
                                        align: 'stretch'
                                    padding: '0 1 1 1',
                                    html: '<p>Test Panel</p>'
                                if (newParentPanel != null) {
                                    if (Ext.Viewport != null) {
                                        console.log('Viewport is not null.');
                                        if (Ext.Viewport.isReady) {
                                            console.log('Viewport is ready.');
                                    else {
                                        console.log('Ext.Viewport is null.');
    Last edited by dotBomb; 4 Mar 2012 at 1:00 PM. Reason: More information provided ...

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    This is working for me in RC2 without setting the _activeItem to null hack. I see the newParentPanel container.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    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.

Posting Permissions

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