[TIMOB-5583] MobileWeb: tableViewRow becomes selected on event mouseup instead mousedown.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-06-15T04:45:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Maxim Negadaylov |
Created | 2011-06-15T03:08:34.000+0000 |
Updated | 2017-03-09T20:44:16.000+0000 |
Description
tableViewRow becomes selected on event mouseup instead mousedown.
Expected behavior: tableViewRow have to become selected when mousedown and becomes deselected when mouseup.
var win = Ti.UI.currentWindow;
win.backgroundColor = '#EEE';
var data = [{title:'This is row #0',backgroundColor:'blue', fontStyle: 'italic'},
{title:'This is row #1',fontSize:15, hasCheck:true},
{title:'This is row #2',hasChild:true},
{title:'This is row #3',hasDetail:true},
{title:'This is row #4',selectedBackgroundImage:'/images/chat.png',selectedColor:'red'}
];
var tableView = Ti.UI.createTableView({
width: 300,
height: 200,
top: 70,
left: 10,
backgroundColor: '#AAA',
data:data
});
var closeButton = Ti.UI.createButton({
title:'Close Window',
height:40,
width:140,
fontSize: 16,
top:10,
left:90
});
closeButton.addEventListener('click', function(){
Titanium.UI.currentWindow.close();
});
win.add(tableView);
win.add(closeButton);
Closing ticket as fixed.