Anish Kumar D

Anish Kumar D's page

15
Feb

Logger in Sencha Touch

Ext.Logger.deprecate('Sample Message.');

06
Feb
CGFloat scrollViewHeight = 0.0f;
for (UIView* view in scrollView.subviews)
{
   scrollViewHeight += view.frame.size.height;
}

[scrollView setContentSize:(CGSizeMake(320, scrollViewHeight))];

31
Jan

31
Jan

Logo

30
Jan

Placing Video in Sencha Touch

var panel = new Ext.Panel({
    fullscreen: true,
    items: [
        {
            xtype    : 'video',
            x        : 500,
            y        : 250,
            width    : 125,
            height   : 120,
            url      : "exmaple.mov",
            posterUrl: 'example.png'
        }
    ]
});

23
Jan

Adding Map in Sencha Touch

var panel = new Ext.Panel({
    fullscreen: true,
    items: [{
        xtype: 'map',
        useCurrentLocation: true
    }]
});

source: sencha.com

09
Jan

Prevent Zooming in sencha touch

preventZooming// true or false

06
Jan
if (Ext.browser.is.IE) {
     // IE specific code here
}

if (Ext.browser.is.WebKit) {
     // WebKit specific code here
}

console.log("Version " + Ext.browser.version);

ser: sencha.com

04
Jan

when you browse your sencha site. you can experience a problem that the address bar is showing which will hide your tab bar at the bottom (particularly in Android).

Use the following code to fix the problem.

if(Ext.is.Android)
{
   	 window.scrollTo(0,1);
}

30
Dec

Getting Parent element in jquery

This is Child element 1
This is Child element 2

css

.parent_class
{
color:blue;
}

jquery

$('#child2').parent().removeClass('parent_class');