scroll error on 2.5.2 combo box
I posted this error 2 weeks ago.
In 2.5.1, I used the following code to keep the selected item on the top of the popup list:
ddl.showPopup1 = ddl.showPopup;
ddl.showPopup = function(){
this.showPopup1();
this.getViewTemplate().element().parentNode.scrollTop = this.getCurrentItem()*16;
}
It worked fine in 2.5.1, but not work in 2.5.2. To trace the error, I change the last line of code like
this.getViewTemplate().element().parentNode.scrollTop = 160;// (or whatever numbers here)
alert(this.getViewTemplate().element().parentNode.scrollTop);
The alert displays 0 at initial, and then, always displays 32 afterward.
Should I change something to adopt 2.5.2?
Thanks,
In 2.5.1, I used the following code to keep the selected item on the top of the popup list:
ddl.showPopup1 = ddl.showPopup;
ddl.showPopup = function(){
this.showPopup1();
this.getViewTemplate().element().parentNode.scrollTop = this.getCurrentItem()*16;
}
It worked fine in 2.5.1, but not work in 2.5.2. To trace the error, I change the last line of code like
this.getViewTemplate().element().parentNode.scrollTop = 160;// (or whatever numbers here)
alert(this.getViewTemplate().element().parentNode.scrollTop);
The alert displays 0 at initial, and then, always displays 32 afterward.
Should I change something to adopt 2.5.2?
Thanks,
mrhsh
July 21,