1. #1
    Sencha User
    Join Date
    Jan 2013
    Location
    Philadelphia, PA
    Posts
    3
    Vote Rating
    1
    sblawrie is on a distinguished road

      0  

    Default Unanswered: Formpanel Not Showing Up in Production Build

    Unanswered: Formpanel Not Showing Up in Production Build


    I've built a fairly large app and compiled it for production using Sencha Cmd. Before compiling, the app works perfectly with no errors. The production version works almost perfectly except for two formpanels, which won't show up when added (i.e. panel.add([formpanel])) to a panel.

    There are no errors given. 'Ext.form.Panel' is included in "requires" in the controller that uses it (and is definitely being defined before being instantiated in the production app.js build).

    When I inspect the dom, I can see the content for the formpanels there.

    My suspicion is that there is some sort of problem with adding a formpanel to a panel dynamically. Keep in mind, though, this all works in development, just not in production.

    Any ideas? What am I missing about production builds that could be throwing this off?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    Answers
    3564
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Sounds like a layout issue, form panel is not going to auto height so you will need to use a layout on the form's parent or give the form a height.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

Thread Participants: 1

Tags for this Thread