mardi 15 avril 2014

Applying Styles to Dom elements is causing performance issues in iPhone.

hi,

I see an unacceptable lag when I apply style to the sencha controls using jquery in painted event.

Please find the code snippet below.

When I apply the same to Kitchen sink example, I found the same poor performance in iPhone 5 (ios v7).



Code:



{
xtype : 'emailfield',
name : 'email',
label : 'Email',
placeHolder: 'me@sencha.com',
clearIcon: true,
listeners: {
'painted': function () {
$('#' + this._itemId + ' input').attr('style', 'font: normal 11px Arial !important; color: rgba(235, 17, 17, 1.0) !important; text-decoration:none !important ;text-align:left !important ;height:22px !important; ' + $('#' + this._itemId + ' input').attr('style'));
}
}
},

Adding more controls with styles resulting more lag in type-in and selecting date etc., issues.

Can some one please suggest on this.

Thanks,

Naresh





Aucun commentaire:

Enregistrer un commentaire