Update: Development of MobiOne has been discontinued. Read the End of Life Notice for more information.


So you've got MobiOne and occasionally you may have a need to programmatically scroll a panel's content vertically. The panel implementation uses a version of iscroll to provide scrolling support. Go here to download an example MobiOne app that demonstrates scrolling a panel using the iscroll setPosition() javascript api. The panel is 4000 px tall:

Following is a snippet of code used by the Middle button's Run JavaScript action to scroll the panel to the vertical mid point.

Again, if you'd like an example app design file (.mobi) please go here.

If you have any questions please visit the MobiOne support forums, they're staffed with Genuitec employees.

Related Posts

CodeMix – Better with You! Thanks to detailed feedback from our awesome users, our team has been hard at work adding stability, reliability and performance fixes, and enhancements, to CodeMix. Read on for the deets on what’s new in CodeMix over the last month.Editing & ValidationWhen editing TypeScript files, error markers were sometimes not cleared when the error was fi...
A Day with Dani: Eclipse Plugin for Awesome Worksp... DevStyle Rescued My Workspace!As a new developer working in Eclipse, nothing was worse than doing a project and looking at an outdated, plain workspace. It was boring, and took away from the excitement and learning these projects had to offer. This was an IDE I would be using almost every day, so when I learned about the DevStyle plugin for Eclipse...
MobiOne: Scrolling a Panel Programmatically Update: Development of MobiOne has been discontinued. Read the End of Life Notice for more information. So you've got MobiOne and occasionally you may have a need to programmatically scroll a panel's content vertically. The panel implementation uses a version of iscroll to provide scrolling support. Go here to download an example MobiOne app t...

Posted on Oct 18th 2012