1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    73
    Vote Rating
    -1
    PhilChill is an unknown quantity at this point

      0  

    Default Unanswered: Sencha Touch 2.1 problem

    Unanswered: Sencha Touch 2.1 problem


    Hey guys,

    I just updated my sencha touch. But when i start it, it is using a very strange layout ( it looks like that it is not loading my own css file). Is that a bug or do i need to change something.

    Here is a screenshot how it look
    SenchTouch2.1.jpg

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Location
    England
    Posts
    135
    Answers
    11
    Vote Rating
    7
    george.m is on a distinguished road

      0  

    Default


    If you have your own css file, you will have to add it to the app.json file. Find the following block of code and add it in there.

    "css": [
    {
    "path": "resources/css/app.css",
    "update": "delta"
    },
    {
    ..put in here..
    }
    ],

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    73
    Vote Rating
    -1
    PhilChill is an unknown quantity at this point

      0  

    Default


    Thanks for the response. But i'm not using a json file currently. In my version i just add the css file to a html file like so
    <link rel="stylesheet" href="touch/resources/css/main.css" type="text/css">

    it is working in sencha touch 2.0.1 but not in 2.1

    is it really necressary to add it in a json file?

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Location
    England
    Posts
    135
    Answers
    11
    Vote Rating
    7
    george.m is on a distinguished road

      0  

    Default


    Well Sencha 2 builds the index file for you doesn't it, and it uses the app.json file in the process. I have my custom stylesheet in the way I said above and it works.

    I'm assuming that you didn't build the app using SenchaCmd then if you don't have an app.json file? I'd recommend that you do as it does a lot of the work for you.

  5. #5
    Sencha User
    Join Date
    Feb 2012
    Posts
    15
    Answers
    1
    Vote Rating
    0
    tine_m is on a distinguished road

      0  

    Default


    if you are building css files from scss, make sure, that your "config.rb" has correct path to sdk folder. Note that now "sdk" folder is renamed to "touch", so you may have to fix that. Then compile your scss and try again...

    that fixed a lot for me, but I admit, I still have some strange layouts (probably because different sencha theme css ), specially in lists that I changed from dataview (since now lists can have components).

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi