sencha-touch

Sencha build error when viewed in browser

强颜欢笑 提交于 2019-12-12 01:28:10
问题 I have finally managed to create a production build of my sencha web app using Cmd 3.10.2.342 and touch 2.2.1 All my bespoke files are included and deltas are created as one would expect. However, when I run it in the browser, it stalls at the loading view. Console log says: TypeError: 'undefined' is not a function (evaluating 'h.call(w,w)') I have traced the error to Ext.application({... in app.js. I have tried the following changes, but still get errors: new Ext.application({... Ext

Overlaying in list items with Sencha Touch app

ε祈祈猫儿з 提交于 2019-12-12 01:03:12
问题 I am developing a Sencha Touch app with lists, specifically in one list we have (for example) 400 different items and it is necessary to include the parameter infinite: true to improve the performance in the view.. But I am looking a strange behavior and the items are overlaying with the next one.. My code is: xtype : 'list', cls : 'mweb-list', useComponents: true, maxItemCache: 30, useHeaders : false, infinite : true, This behavior is happening when I include the infinite parameter..

parsing deeply nested xml in sencha touch

流过昼夜 提交于 2019-12-12 00:01:03
问题 I'm trying to parse a xml file and I'm having problems with a really simple nested tag but every example I have seen just takes the easy way of reading not nested xml tags, or plainly changing the xml (I can't do that). So my question is: in Sencha touch 1.1, how can I configure the model to load just one property which is nested inside a couple of tags? I tried this: Ext.regModel('article',{ fields: [ {name:'Headline',type:'string'}, {name:'Summary',type:'string'}, {name:'Body',type:'string'

Delphi and Sencha Touch

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 23:52:41
问题 In this question I've been told about Sencha Touch as the "solution" fo r writing x-platform mobile/touch application. I browsed Sencha Touch demos using an iPadSimulator and wow... The experience is native, not web application. So for what I need to achieve, this is very good. Now, how is it possible from Delphi create a Sencha Touch powered application? Did anyone has an example? ExtPascal doesn't support it directly, I searched on google and I found this post that states it. That post also

Sencha touch production build errors

别等时光非礼了梦想. 提交于 2019-12-11 22:17:29
问题 Using touch 2.1.0 and Cmd 3.1.2.342 Whilst trying to create a production version of my sencha app, I get the following error: [WRN] C1003: Unsupported Ext.define syntax -- C:\wamp\www\touch-2.1.0\axis\nativ e\appname\touch\src\fx\TimingFunctions.js:109 [ERR] C2008: Requirement had no matching files (Ext.fx.TimingFunctions) -- C:\wa mp\www\touch-2.1.0\axis\native\appname\touch\src\fx\Abstract.js:959 [ERR] The following error occurred while executing this line: C:\wamp\www\touch-2.1.0\axis

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

Sencha Touch 2.3 - Sass @mixin Breaks sencha app build

南楼画角 提交于 2019-12-11 21:41:50
问题 Just upgraded to Sencha Touch 2.3 - everything is great until I added my Sass mixins, and tried "sencha app build"... update / note: "sencha app watch" also causes the same error. (Sencha CMD 4.0.1.45) My mixin: @mixin MQ($canvas) { @if $canvas == small { @media only screen and (max-width: 20em) { @content; } //320px } @else if $canvas == 'XS' { @media only screen and (max-width: 30em) { @content; } //480px } @else if $canvas == S { @media only screen and (max-width: 37.5em) { @content; } /

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

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

PhoneGap Build + Cordova + ChildBrowser Error

走远了吗. 提交于 2019-12-11 19:47:38
问题 Here is my code: <script src="include/cordova.js" type="text/javascript"></script> <script src="include/sencha-touch-all.js" type="text/javascript"></script> <script type="text/javascript" charset="utf-8" src="include/childbrowser.js"></script> <link href="include/sencha-touch.css" rel="stylesheet" type="text/css" /> var childBrowser = null; if (navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/)) { document.addEventListener("deviceready", onDeviceReady, false); } else {