boniek
2 Aug 2012, 5:16 AM
Hello,
I've got problem with list component. Sometimes when it is rendered there is a large blank area.
About 400px / 400px starting in top left corner of the list component. (Similar thing is happening with dataview).
Does anyone know what may cause it ?
I have noticed it in Chrome 20 (Win7) and Safari (iOS 4.3).
My code:
Ext.define("Demo.view.SelectUser", {
extend: 'Ext.Container',
id: 'SelectUserForm',
config: {
fullscreen: true,
layout: 'fit',
items: [{
title: 'User Selection',
xtype: 'titlebar',
docked: 'top',
items: [{
xtype: 'button',
text: 'Back',
ui: 'back',
id: 'backFromUserSelection'
}]
},
{
xtype: 'panel',
docked: 'bottom',
height: 50,
cls: 'hintLabel',
html: 'Please tap on user'
},
{
xtype: 'panel',
layout: {
type: 'vbox',
align: 'center'
},
items: [{
xtype: 'list',
width: 500,
flex: 1,
id: 'UsersList',
ui: 'round',
itemTpl: '<table width=100% height=50><tr><td><strong>{LastName}, {FirstName}</strong></td></tr></table>',
}]
}
]
}
});
Thanks!
I've got problem with list component. Sometimes when it is rendered there is a large blank area.
About 400px / 400px starting in top left corner of the list component. (Similar thing is happening with dataview).
Does anyone know what may cause it ?
I have noticed it in Chrome 20 (Win7) and Safari (iOS 4.3).
My code:
Ext.define("Demo.view.SelectUser", {
extend: 'Ext.Container',
id: 'SelectUserForm',
config: {
fullscreen: true,
layout: 'fit',
items: [{
title: 'User Selection',
xtype: 'titlebar',
docked: 'top',
items: [{
xtype: 'button',
text: 'Back',
ui: 'back',
id: 'backFromUserSelection'
}]
},
{
xtype: 'panel',
docked: 'bottom',
height: 50,
cls: 'hintLabel',
html: 'Please tap on user'
},
{
xtype: 'panel',
layout: {
type: 'vbox',
align: 'center'
},
items: [{
xtype: 'list',
width: 500,
flex: 1,
id: 'UsersList',
ui: 'round',
itemTpl: '<table width=100% height=50><tr><td><strong>{LastName}, {FirstName}</strong></td></tr></table>',
}]
}
]
}
});
Thanks!