SwarmOnline / Ext.ux.TouchCalendar

Sencha Touch Calendar component
113 stars 47 forks source link

Event calendar broken when packaged for iOS #8

Closed jamescw closed 11 years ago

jamescw commented 12 years ago

Hey,

The calendar becomes un responsive when packed into a build for iOS. Have you experienced this? Are their any guidelines for including TouchCalendar inside device packages?

James

andrewmduncan commented 12 years ago

Hi James,

I haven't experienced this myself. What are you using for native packaging?

Andrew

jamescw commented 12 years ago

Im using the process described here to package my app: http://robertdougan.com/posts/packaging-sencha-touch-2-with-phonegap-cordova

My app.json which is responsible for defining resources looks like this:

{"js":[
    {
        "path":"cordova-1.8.0.js",
        "type":"js"
    },
    {
        "path":"sdk/sencha-touch-all.js",
        "type":"js"
    },
    {
        "path":"Ext.ux.TouchCalendar.js",
        "type":"js"
    },
    {
        "path":"Ext.ux.TouchCalendarView.js",
        "type":"js"
    },
    {
        "path":"Ext.ux.TouchCalendarEvents.js",
        "type":"js"
    },
    {
        "path":"app.js",
        "bundle":true,
        "update":"delta",
        "type":"js"
    }
], "css":[
    {
        "path":"resources/css/app.css",
        "type":"css"
    },
    {
        "path":"resources/css/Ext.ux.TouchCalendarView.css",
        "type":"css"
    },
    {
        "path":"resources/css/Ext.ux.TouchCalendarEvents.css",
        "type":"css"
    }
]}

The calendar is working great when unpackaged.

When packaged its un-responsive on the device and also just running it in the browser on the desktop directly from the build folder.

This suggests something is the build process has caused this...

Anything you can surgest here would be really good, not sure what to do

abellina commented 12 years ago

I am getting the same problem with cordova. Otherwise, the calendar is great!

abellina commented 12 years ago

Update: I got it to work by initializing TouchCalendarView in a more standard way. I gave it an xtype (which it doesn't seem to have by default) and had to fix a few issues regarding stores (I debugged it using the regular development version, didn't need to package each time). If you are interested I can share my changes... works great now.

jamescw commented 12 years ago

Yes that would be great if you could. My issue only arises when packaged so not sure if this will solve my particular problem, but would be great to see some ideas anyway.

Stuart98 commented 11 years ago

Thanks for the feedback - I will add an xtype to the calendarview so it can instantiated in the config.

ihajat commented 10 years ago

Hi. Can someone please show me, how to add this to cordova/phonegap? regards