jijo-paulose / jscrollpane

Automatically exported from code.google.com/p/jscrollpane
0 stars 0 forks source link

scrollTo not working in Adobe AIR widget #276

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello all,

Please guide me:

Following code is not working.
var elementposition = 200; //calculated dynamically
$('#element-id')[0].scrollTo(elementposition);

Throws the following error:
TypeError: Result of expression '$('#element-id')[0].scrollTo' [undefined] is 
not a function.]

Scenario: I have implemented custom scrollbars using jScrollPane in our Adobe 
AIR widget. I want to scroll the scrollbar on click of a button.

Thanks in advance,
Tanveer

Original issue reported on code.google.com by tanveer....@gmail.com on 4 Dec 2012 at 8:14