-
11 Sep 2012 5:32 PM #1
Fullscreen textareafield for Sencha Touch 2
Fullscreen textareafield for Sencha Touch 2
I really dislike the default textarea field, so I went looking for alternatives.
I found one called "BetterTextArea" that displayed a larger text field in a modal, but found that a bit wonky. http://colinramsay.co.uk/diary/2012/...encha-touch-2/
I took that code and modified it to display fullscreen when you tap to edit the textfield, which feels better on the phone and my tablet.
Here's the result of my work if anyone cares: https://gist.github.com/3703512
photo.PNG
-
13 Sep 2012 6:48 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Nice! I would make one change. Currently you use Ext.Viewport and add and set the panel as active item. This is assuming the user isn't doing any removal on old items on Ext.Viewport and also that Ext.Viewport is a card layout container. Instead, I would use a sheet and animate it from the bottom
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.
-
13 Sep 2012 4:18 PM #3
-
13 Sep 2012 5:38 PM #4
-
14 Sep 2012 5:08 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Use the stretchX and stretchY configs
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.
-
14 Sep 2012 2:36 PM #6
This worked...here's the updated version: https://gist.github.com/3703512
Thanks for the feedback guys. Should I log a bug that the "fullscreen" config that's documented on sheets doesn't work?


Reply With Quote