Results 1 to 4 of 4

Thread: Abouth "Uncaught TypeError: Cannot read property 'getPageBox' of null"

    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 User
    Join Date
    May 2014

    Default Abouth "Uncaught TypeError: Cannot read property 'getPageBox' of null"

    Executing the compressed program which uses Ext.ActionSheet,following error occurs.
    "Uncaught TypeError: Cannot read property 'getPageBox' of null"

    The attached sample codes are as follows:
    The sample codes made by Sencha Architect

    1.Make the model of project.
    > sencha -sdk /path/to/touch generate app MyApp /path/to/app

    2.Overwrite the attached file to app.
    > copy app /path/to/app

    3.Compress it.
    > ant build

    4.Execute it.
    > sencha web -port 80 start

    5.Check it on browser.
    tap [MyButton1]button.
    The Sheet appears from left side.
    The program which is debug version operates correctly.

    tap [MyButton1]button.
    The Sheet does not appear from left side.
    The error occurs in the console.

    Delete Extcode build/production/MyApp/app.js and put the tag "<script src="touch/sencha-touch.js"></script>" into the index.html.
    The program operate correctly.

    What's the problem about this?
    Is there any solution?

    The versions of Sencha which we tested are as follows:
    Sencha Cmd v5.0.0.160
    Sencha Cmd v5.0.3.324
    Sencha Touch v2.3.1
    Sencha Touch v2.3.2
    Sencha Touch v2.4.0
    Sencha Architect v3.0.0
    Sencha Architect v3.1.0
    The error occurs All versions.
    Attached Files Attached Files

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL


    You use ant build, have you tried the sencha app build instead?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha Premium User
    Join Date
    May 2014


    I've tried it already,and the result was same.The error "Uncaught TypeError: Cannot read property 'getPageBox' of null" occured and Ext.ActionSheet didn't appear.any idea?

  4. #4
    Sencha Premium User
    Join Date
    May 2014


    I guess the problem was not adding Ext.ActionSheet to Ext.Viewport.

    Console.log is as below
    [DEPRECATE][Ext.ActionSheet#show] Call show() on a component that doesn't currently belong to any container. Please add it to the the Viewport first, i.e: Ext.Viewport.add(component);

    According to consolelog,I added "Ext.Viewport.add(myActionSheet)" to the Viewport.
    This make it work.

    thank you.

Posting Permissions

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