PDA

View Full Version : Sencha loading mask moving



Weicheng.Huang
26 Nov 2013, 5:27 PM
Hi,

When I scroll the up-and-down webpage, the loading mask is moving with scroll. I don not want to loading mask moving with scroll instead I want it fixed in the component. I know how to disable the loading mask to solve this issue. However, I want loading mask to stay at component to let user know the content is loading.

Thanks in advanced.

Gary Schlosberg
26 Nov 2013, 7:10 PM
What kind of component is being scrolled? Are you setting the loadingMask yourself? Can you post a code sample, perhaps a fiddle (https://fiddle.sencha.com/#home)?

Weicheng.Huang
27 Nov 2013, 6:14 AM
The compoent is a Ext.grid.Panel. I promote this componet to class. I think this is the reason why the loading mask is moving when use scroll the webpage. For this component, I also create the overwrite class :

Ext.define('Myapp.view.override.MyGridPanel', { override: 'Myapp.view.MyGridPanel',
plugins: [{
ptype: 'rowexpander',
rowBodyTpl : new Ext.XTemplate(
'<tpl for=".">',
'<p>{detail},</p>',
'</tpl>'
)
}]
});