PDA

View Full Version : [CLOSED] Javascript function migrating



ViDom
May 07, 2013, 9:11 AM
Hi,
I've this function written in ext JS 3.4:


function restoreScroll(vview, field){
if(!Ext.isEmpty(field.getValue(), false)){
var scrollPos = parseInt(field.getValue());
vview.scroller.dom.scrollTop = scrollPos;
}
}


what is represent of vview.scroller.dom.scrollTop in ext JS 4.2 ?

Thanks,
ViDom

Daniil
May 07, 2013, 9:45 AM
Hi @ViDom,

Please try:

vview.el.dom.scrollTop = scrollPos;

ViDom
May 07, 2013, 10:06 AM
Hi @ViDom,

Please try:

vview.el.dom.scrollTop = scrollPos;

Yeah it's what I need.
Thanks @Daniil, you doing great job here:)