sencha-touch-2

Sencha touch 2.2 application layout breaks in chrome 29

我的未来我决定 提交于 2019-12-11 22:16:22
问题 One day when I checked my app done in sencha touch 2.2, it's layout has been totally broken.I realised that my Chrome has been auto updated to 29 from 28. It works perfectly in chrome 28 and older , any other webkit browsers.When I checked the sample app comes from sencha touch package, it's also seems to be broken.My clients also use chrome 29 .How can I fix this layout issue for chrome 29? 回答1: I had same problem and i fixed. Go to touch/resources/themes/stylesheets/sencha-touch/base/mixins

Unable to run the Sencha Cordova project in Windows 8.1 Computer

↘锁芯ラ 提交于 2019-12-11 20:53:37
问题 I have downloaded the sample Sencha project from Lee in her blog (Lee's Sample Project). I have installed all the necessary software like Sencha Cmd version 5.0.1.231 , Ruby, Compass, sass, Java, Node.js,Sencha Touch, Cordova in my windows 8.1 machine before proceeding to work. I have followed the steps from this answer (Answer Link) When I run the following Sencha Command inside the Sencha Project which I downloaded. sencha app build package It says the project builds on older version of

how to change background color of all panels and containers of sencha touch 2 app

╄→尐↘猪︶ㄣ 提交于 2019-12-11 20:34:27
问题 I am trying to change theme of sencha application, i want to know how to change background color of all panels and containers of sencha touch app like touchstyle application I changed the title bar, tab panel color, but i don't know how to change the color of panel and container. 回答1: Set the style config. style: { background: 'red' } EDIT: You could set the cls config for your panel. E.g: cls: red-bg and in your stylesheet: .red-bg .x-panel-body{ background-color : red !important; } 回答2: Two

Unable to generate android skeleton project from sencha touch because of stbuild exited with non-zero code : 7

╄→尐↘猪︶ㄣ 提交于 2019-12-11 20:25:41
问题 I have downloaded sencha command v4.0.4.84 , sencha touch2.4.0-commercial and have installed ruby 1.9.3p545 and installed sass and compass and ant and installed jdk 1.7 and set classpath ,path successfully in my windows 7 64 bit machine. PS : The problem i am facing is to Unable to generate android skeleton project from sencha touch example project. Steps I have tried Extracted the sencha touch 2.4.0 -commerical and then in the command prompt executed the following command D:\firstapp\touch-2

where and how to write updatedata event in the correct way

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 19:51:25
问题 I want to add a listener which listens to updatedata event in my custom component. I have several ways to do it, but don't know which one is correct: inside config config:{ updatedata:"dataUpdated" }, dataUpdated: function() { ......... } 2. config:{ listeners:{ updatedata: function(thisComponent, newData, eOpts){ .............. } } } Also, do I need to call something like: me.updatedata() within the listener function? Please correct me if something wrong in my code. Thank you. 回答1: You would

How to load sencha-touch.css in IE 10?

我与影子孤独终老i 提交于 2019-12-11 19:17:41
问题 I am using the latest sencha touch library (2.2.1). I tried to load default theme in IE10, which is sencha-touch.css ( apple look and feel ), and IE 10 just crashes. I saw that in Kitchen Sink example: http://docs.sencha.com/touch/2.2.1/touch-build/examples/kitchensink/index.html?platform=chrome it is possible to choose from Theme -> "Sencha" option. Does any one know if they do something different? 回答1: You need to update your app.json to only load that theme on all platforms (or just IE10).

How to test a Sencha 2 app?

半城伤御伤魂 提交于 2019-12-11 18:47:47
问题 I cant see any "how to test a Sencha 2 app" in the documentation - is there really no framework support for testing? How should one test a Sencha 2 app, whats best pratice? 回答1: Run your app under local server like wampserver, apache tomcat etc. Be sure to use Web browsers like Chrome, Safari only which supports Webtk engine. 回答2: found a good Sencha blog about testing: http://www.sencha.com/blog/automating-unit-tests/ 回答3: Here's a 5 part series covering unit testing using Jasmine (used

Sencha Touch : How to get the simple json file as response using JSONP?

天涯浪子 提交于 2019-12-11 18:30:19
问题 I am trying to make a simple JSONP call to get a json file which is loaded on the remote server. Here is my simple json file loaded on the server. { "login": [ { "themename": "NO", "themeId": "1" } ], "homePage": [ { "themename": "NO", "themeId": "1" } ], "transactionDetails": [ { "themename": "NO", "themeId": "1" } ] } My Controller code which calls this file to get the data Ext.data.JsonP.request( { url : 'http://xx.xx:8080/ThemeSelector.json', callback : 'someCallback' , someCallback:

Request Payload data in Sencha Touch

白昼怎懂夜的黑 提交于 2019-12-11 18:25:17
问题 Was just trying to sync a model in Sencha Touch and realised that it doesn't yet support sending of Nested Model data. So I'm having to do the Ajax request manually. How can I send the data via 'Request Payload' instead of parameters etc? Ext.Ajax.request({ url: '/api/blah', method: 'POST', params: { request: toAdd, }, success: function(response, opts) { }, failure: function(response, opts) { } }); I'm guessing it has to be a particular header I send across? Thanks, Dominic 回答1: Ext.Ajax

Customizing HTML for the List view cell

二次信任 提交于 2019-12-11 18:09:28
问题 A cell of my Sencha touch list view appears as follows; But, i want the text to display on the side as shown in the following image. How can i do this. My code looks like this : <div><img src="{IMAGE_URL}" height="55" width="55"/></div> {MAIN} <br/> {SUBMAIN} I need the following in my list view cell: 1.) I want to add a background colour White. 2.) I want to add a button, where i could click and display an alert. 回答1: Try my code and you can use this to build on var list = { xtype: 'list',