1. #1
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    131
    Vote Rating
    6
    benjamineberle is on a distinguished road

      0  

    Default Framework css class missing

    Framework css class missing


    The Ext.js css class 'x-form-file-input' is missing in my App-all.css file.
    It's used e.g. by Ext.form.field.FileButton. How can I get it back properly?

    I'm using Ext.js 4.2.1 and Cmd 4.0

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,417
    Vote Rating
    201
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    If you run your application in dev (not just load, but run through the paces) do you get any warnings in the console mentioning that classes were loaded synchronously?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    131
    Vote Rating
    6
    benjamineberle is on a distinguished road

      0  

    Default


    I did and added these classes to Application.js, though I still can't require Ext.data.Store for some reason.
    It says it's an unrecognized class name when adding it to the requires-property.

    Loading these classes on startup didn't help with the missing css class. I even added Ext.form.field.FileButton to the initial load.

    Thanks

  4. #4
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,417
    Vote Rating
    201
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    Was the app generated by "sencha generate app"?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

  5. #5
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    131
    Vote Rating
    6
    benjamineberle is on a distinguished road

      0  

    Default


    Yes

  6. #6
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,417
    Vote Rating
    201
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    Was the app generated with Cmd 4 or from a previous version of Cmd and then upgraded?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

  7. #7
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    131
    Vote Rating
    6
    benjamineberle is on a distinguished road

      0  

    Default


    It was a fresh app using the latest versions.

    Starting a new template app with cmd not regarding my setup, the class would be still missing.

  8. #8
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,417
    Vote Rating
    201
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    To clarify, are the styles missing from a newly generated app or they're missing from a custom app/theme using a base app generated by Cmd?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

  9. #9
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    131
    Vote Rating
    6
    benjamineberle is on a distinguished road

      0  

    Default


    New app. Just type sencha app generate & sencha app build and that class will he missing.

  10. #10
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,417
    Vote Rating
    201
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    A freshly generated app doesn't use the filefield widget so the built app won't include the styling for it. But, if you include a fieldfield in the app (watch in the dev tools console to see if you get a synchronous load warning for Ext.form.field.File - if so you'll want to require it in the class where it's used) and then build it again you should see the css rules included in the app-all.css output. Cmd will include the css style for only the classes required in the app to keep the built app resources as small as possible.
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

Thread Participants: 1