Say you have a class with two configs, and both have default values. I just realized that if you call one config's getter from another config's apply or update function, it's not guaranteed to return...
Type: Posts; User: jweber
Say you have a class with two configs, and both have default values. I just realized that if you call one config's getter from another config's apply or update function, it's not guaranteed to return...
Thanks! Good to know.
Since this was never fixed, does anyone know if it's safe to make the suggested override (removing the "deprecated" tags)? I'm running into this issue using ST 2.4.2.
You can't, but you can try calling this.getLayout().setOrient('vertical') or setOrient('horizontal'), which should do mostly the same thing.
On the iPhøne X, using Sencha Touch 2.4.2, if I start an app in portrait, then rotate to landscape, the viewport is sized incorrectly. The height is 44px too short, so there's a blank space at the...
Thanks for that fix. This isn't just a problem in the Cupertino theme -- it's in the base CSS used by all themes.
I worked around this by overriding Ext.app.Application.dispatch, and wrapping it in a window.setTimeout. This way the dispatch doesn't happen until the next event loop after location.hash is changed....
Is there a workaround for this?
Is there a fix for this?
What about the "callParent has no target" messages? I'm getting those with Sencha Cmd 5.1.1.39 and Touch 2.4.2.
Hmm, it's worse than I thought. On a real Galaxy Tab 3 10.1 device, inside a Cordova app, running Android 4.4.2, I'm getting window.orientation = 0 for BOTH orientations. I'm wondering if it's better...
OK: https://fiddle.sencha.com/fiddle/qqd/preview
Load on a Galaxy Tab, or an emulator with the specs described above.
This isn't fixed correctly in ST 2.4.2; see this report.
Android 4.1.2 emulator, 400x800 screen, Sencha Touch 2.4.2.
Create a page with the following code:
Ext.Viewport.on('orientationchange', function(viewport, orientation, width, height) {
...
(Originally posted here, but making sure it gets a bug report.)
Galaxy Tab devices (and probably others) use landscape as their "default" orientation. So window.orientation returns 0 for...
This is not fixed in ST 2.4.2. I'm running an Android 4.4.2 emulator with a 1024x600 screen, so the "natural" orientation is landscape. When it launches, Ext.Viewport.getOrientation() returns...
This was fixed in Sencha Touch 2.4.2, although there's no mention of it in the release notes.
In Sencha Touch 2.4.1 and 2.4.2, in the file:
touch/resources/themes/stylesheets/sencha-touch/default/src/form/_Panel.scss
the .x-form-label style has two "color" rules: one from the "label"...
I looked at the Sencha Touch code, and found that Ext.os.deviceType is calculated in env/OS.js:
if (!osEnv.is.Android && !osEnv.is.iOS && !osEnv.is.WindowsPhone &&...
Example:
Ext.define('Foo', {
config: {
platformDevice: 'none'
},
platformConfig: [{
platform: ['phone'],
platformDevice: 'phone'
Is there any possibility of getting some attention from Sencha on this?
My suggested fix doesn't work in all cases. For example, I'm using an Android 4.4.2 emulator, in a Cordova app (so it uses...
I generated a new app using Sencha Touch 2.4.1 and Sencha Cmd 5.1.1.39.
Then I added a tablet-specific CSS file to app.json:
{
"path": "resources/css/tablet.css",
"platform":...
I need a way to identify a record in a Store, that remains consistent across page reloads, so I can pass it in a URL.
(Assume for the sake of argument that the data loaded into the Store doesn't...
OK. Would it make sense to add these to testing.defaults.properties and package.defaults.properties?
enable.deltas=false
enable.cache.manifest=false
If I move the Ext.define('A') into its own file, and make X require A instead of A2, it also fixes the build order.
So it seems like something is handled differently when the Ext.define is inside...