Results 1 to 3 of 3

Thread: Ext.MessageBox displayed twice

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha Premium Member richardvd's Avatar
    Join Date
    Jun 2011
    Location
    NL
    Posts
    88
    Vote Rating
    28
      0  

    Default Ext.MessageBox displayed twice

    REQUIRED INFORMATION

    Ext version tested:
    • Sencha Touch 2.2.0
    Browser versions tested against:
    • Android 4.0.3 WebView and stock browser (HTC Sensation)
    Description:
    • Ext.MessageBox appears twice on Android 4.0.3 in a Sencha Cmd native packaged app / production build. The problem does not happen with the same apk installed on an Android 2.2.2 device (HTC Desire).
    Steps to reproduce the problem:
    • Package the code below using Sencha Cmd and run the .apk on an Android device. Or do a production build and run it using the stock browser.
    The result that was expected:
    • The messagebox appearing once.
    The result that occurs instead:
    • The messagebox appearing twice.
    Test Case:
    Code:
    Ext.application({
        name: 'messagebox',
    
        requires: [
            'Ext.MessageBox'
        ],
    
        launch: function() {
            Ext.Msg.confirm('Please Confirm', 'Are you sure you wish to logout?', function(btnId) {
                console.log(btnId);
            },this);
        },
    });

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,421
    Vote Rating
    1271
      0  

    Default

    Does the launch method fire twice?
    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
    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 Premium Member richardvd's Avatar
    Join Date
    Jun 2011
    Location
    NL
    Posts
    88
    Vote Rating
    28
      0  

    Default

    No, launch() runs just once. Additional info:

    The same problem occurs with the MessageBox in the List example, if I package that unchanged and run the apk or production build on Android 4.0.3.

    The first MessageBox comes up as expected, I can press the buttons and read the value. Directly after the first MessageBox animates out, the same MessageBox animates in again and stays on screen, but now I cannot press the buttons. I can tap outside the second MessageBox to escape (if a container exists).

    What I noticed in Android 2.2.2:
    • Sencha Touch runs much faster and is more responsive
    • no problem with Ext.MessageBox
    • Ext.browser.getPreferredTranslationMethod() returns 'cssposition' (on Android 4.0.3: 'csstransform')
    I wonder if these three are related?
    To test this, how can I force Sencha Touch in Android 4.0.3 to render like it does on Android 2.2.2?

Posting Permissions

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