Hi,

I used Aptana studio to create a BasicWRT widget. I changed Basic.js as below:


///////////////////////////////////////////////////////////////////////////////
// Simple "Hello World" widget that demonstrates the WRTKit UI toolkit.

// Reference to the WRTKit user interface manager and main view.
var uiManager;
var mainView;

function init()
{

// create the user interface manager
uiManager = new UIManager();


// set tab-navigation mode and show softkeys
// (only if we are in the WRT environment)
if (window.widget) {
widget.setNavigationEnabled(false);
}

// empty caption text to display the caption bar - custom background using CSS
mainView = new ListView(null, "Hello World");
for(var i = 0; i < 25; i++)
{
var buf = "<line1 class=\"NavigationButtonText1\">";
buf += "Item "+i;
buf += "</line1>";
buf += "<br />";
buf += "<line2 class=\"NavigationButtonText1\">";
buf += "My name is suresh";
buf += "</line2>";

navTemp = new NavigationButton(i+5000, null, buf);
mainView.addControl(navTemp);
}

// show the mainView
uiManager.setView(mainView);
}

basic.css CSS contains:
/* Rules for navigation button text */
.NavigationButtonText {
font-weight: bold;
}

/* Rules for navigation button text */
.NavigationButtonText line1 {
font-weight: bold;
font-size:12px;
}

.NavigationButtonText line2 {
font-weight: normal;
font-size:10px;
}

/* Navigation button text in normal state */
.NavigationButtonTextNormal {
font-weight: normal;
}

/* Navigation button text when focused */
.NavigationButtonTextFocus {
color: rgb(255,255,255);
}

.LabelText abt {
font-weight: normal;
font-size:12px;
}


Problem description:
In emulator it works great. On device (N95), when I scroll down/up, the list item selection is not working properly. It skips an item for every few clicks and the behavior is erratic.

Any help is greatly appreciated.

Thanks
Suresh