-
15 Jan 2012 8:34 AM #1
Answered: List and fullscreen false
Answered: List and fullscreen false
Hi to everyone.
I've got a problem with List widget.
I'm trying to develop a small application with Sencha Touch 1.1 for a
desktop environment that uses a touchscreen monitor and I want to create a not complex
layout .
I began creating of a List that has static dimensions and I declared it in this way:
The list appears to be valid and works fine, but I can't set it in fullscreen FALSE, because it don't renders.Code:var list = new Ext.List({ border: '3 3 3 3', height : 300, width : 400, centered: true, fullscreen : false, //<--- this is my TARGET itemTpl : '{company} - {price}', store : store, listeners: { itemtap : { fn : function(){ console.log('Hello World') } }, } }); list.show();
So i tried to use list methods after setting fullscreen to true
This way permits to set list's dimension, but on window resize the List return to body size.Code:list.setWidth(300); list.setHeight(400);
Can you help me ?
Sorry fo my bad English
[COLOR=#fafafa !important]
[/COLOR]

[COLOR=#fafafa !important]
[/COLOR]
-
Best Answer Posted by mitchellsimoens
I've built apps for Chrome and Safari on the desktop just fine.
-
15 Jan 2012 2:09 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3155
What do you want to happen? If you set fullscreen to true then the size will be 100% of the height and width of the screen. If it's not in a layout then you need to set the height and width.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
15 Jan 2012 2:29 PM #3
Ok Mitchell.
I'm studing the Sencha Layout System and maybe I understood it.
Now my question is:
Is Sencha Touch a reccomended tool for developing a web-application for desktop environment too?
Testing a few lines of code I observed that Sencha Touch works just on webkit (Chrome & Safari) and I'm afraid to find incompatibility for some framework's functionality in a "standard pc browser".
What do you think about this?[COLOR=#fafafa !important]
[/COLOR]
-
15 Jan 2012 2:42 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3155
I've built apps for Chrome and Safari on the desktop just fine.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
16 Jan 2012 2:17 AM #5
Thanks Mitchell,
I'll try to complete it ![COLOR=#fafafa !important]
[/COLOR]


Reply With Quote