PDA

View Full Version : List with fullscreen:true does not cover the whole screen



NitrOuS
2 Dec 2010, 8:07 AM
In project of mine I have a list configured like this:



MyNameSpace.moviesList = new Ext.List({
fullscreen: true,
itemTpl: '<strong>{sth}</strong>',
singleSelect: true,
grouped: true,
store: MyNameSpace.myStore,
indexBar: true,
});

in a panel configured:



MyNameSpace.MoviesPanel = new Ext.Panel({
fullscreen: true,
title: 'Title',
items: [MyNameSpace.moviesList]
});


The first time I entered the screen, the list is not in fullscreen mode, but if I change the orientation in my iPhone device, the list expand in the whole screen. Is there any problem with my configuration or is it a bug? Thanks in advance.

PS: In a while I will send screenshots in order to make myself more clear

tomalex0
2 Dec 2010, 9:38 AM
Try this


new Ext.Panel ({
layout:{
type:'vbox',
align:'stretch'
},
scroll:false,
items: [{
flex:1,
fullscreen:false,
scroll:'vertical',
xtype: 'list'
}]
});

NitrOuS
2 Dec 2010, 9:50 AM
@tomalex0: Thanks for the answer! As soon as I test it I'll give you feedback. I attach the screenshots I promised

NitrOuS
3 Dec 2010, 12:32 AM
What you told me to do Tomalex0 works fine on my desktop, but not in my iPhone...Any suggestions?

NitrOuS
3 Dec 2010, 1:05 AM
Sorry Tomalex0. Works fine! Some files where not updated in my server and that's why I couldn't see the difference with my previous version of my app! Thanks again!