[TIMOB-19697] Windows: No way to set ListItem height
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-11-02T20:11:34.000+0000 |
Affected Version/s | Release 5.0.2 |
Fix Version/s | Release 5.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Kota Iguchi |
Created | 2015-10-09T11:41:52.000+0000 |
Updated | 2015-11-09T20:13:26.000+0000 |
Description
The following sample and screenshots show that on Windows the list item height is always the full screen height, regardless of different ways to set the list item height that work fine on iOS.
var win = Ti.UI.createWindow({
backgroundColor: '#CCC'
});
win.add(Ti.UI.createListView({
templates: {
tplHeight: {
properties: {
height: 100
},
childTemplates: [
{
type: 'Ti.UI.Label',
bindId: 'title'
}
]
},
viewHeight: {
properties: {
height: Ti.UI.SIZE
},
childTemplates: [
{
type: 'Ti.UI.View',
properties: {
height: 100
},
childTemplates: [
{
type: 'Ti.UI.Label',
bindId: 'title'
}
]
}
]
}
},
sections: [
Ti.UI.createListSection({
items: [
{
properties: {
title: 'Built-in tpl'
}
},
{
properties: {
title: 'Built-in tpl with height',
height: 100
}
},
{
template: 'tplHeight',
title: {
text: 'Template with height on root'
}
},
{
template: 'viewHeight',
title: {
text: 'Template with height on view'
}
},
{
properties: {
title: 'Built-in tpl'
}
}
]
})
]
}));
win.open();
Attachments
File | Date | Size |
---|---|---|
IMG_9737.PNG | 2015-10-09T11:41:48.000+0000 | 68784 |
Screen Shot 2015-10-09 at 13.38.07.png | 2015-10-09T11:41:48.000+0000 | 18415 |
https://github.com/appcelerator/titanium_mobile_windows/pull/459
Verified using: OS: Microsoft Windows 8.1 Pro Appc core: 5.1.0-43 Appc NPM: 4.2.1 Ti SDK: 5.1.0.v20151104190037 Lumia 930 (8.1) Using the code provide, ListItem height can now be set !http://puu.sh/lfxqP/0b767befce.png! Closing ticket