How to set scroll position for AW.Templates.Combo?
I am changing my AW.UI.Combo to AW.Templates.Combo. I used following code to get the selected item on top of the list of UI.Combo:
var ddl=new AW.UI.Combo;
ddl.showPopup1 = ddl.showPopup;
ddl.showPopup = function(){
this.showPopup1();
this.getPopupTemplate().setSize(300,500);
this.getViewTemplate().element().parentNode.scrollTop = this.getCurrentItem()*16.0;
};
It works fine on AW.UI.Combo. Now I tried to copy the above function to AW.Templates.Combo: