-
28 Nov 2012 8:13 AM #1
Disappearing items in Ext.form.Panel in Chrome web browser
Disappearing items in Ext.form.Panel in Chrome web browser
Hi,
So I found this bit strange behaviour, when implementing view, which inherits from 'Ext.form.Panel'. On mobile device (and also likely on emulator) it will work fine, but during development, I'm testing code against Chrome browser, as it is way more productive than deploying an *.apk over USB to device. So when I'm on Chrome, and switch Chrome Tab to some other site, and then come back to my app (in Chrome Tab), all the Ext.form.Panel items seem disappear, except toolbar, which is docked in the top.
Any ideas?
This is a code (CoffeeScript):
Code:Ext.define 'MyView', extend: 'Ext.form.Panel' alias: 'widget.myview' config: items: \ [ { xtype: 'titlebar' docked: 'top' title: 'Some title' items: \ [ { xtype: 'button' ui: 'back' text: 'Back' # TODO: i18n align: 'left' handler: -> this.fireEvent 'back' } { xtype: 'button' iconCls: 'search' iconMask: true align: 'right' handler: -> Ext.Msg.alert 'You pressed me' } ] } { xtype: 'fieldset' title: 'Set itinerary details' items: \ [ { xtype: 'textfield' } { xtype: 'textfield' } ] } ]
-
30 Nov 2012 8:10 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
The code you have here should work fine, shouldn't be any reason for anything.
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.
-
30 Nov 2012 2:20 PM #3
I thought so. This is even more strange, as Ext.form.Panel inherits directly from Ext.Panel.
-
30 Nov 2012 2:39 PM #4
When i had developped my first application, this bug happened every time!
It's coming from the positioning of the components.
Try changing the layout of your panel.
I advise you to try on several AVD because this bug also occurs on the tall or small screens.
Good luck
-
1 Dec 2012 2:19 AM #5
Thanks for info! If find any workaround (other than using Ext.Panel instead), will let you know.
-
1 Dec 2012 7:03 AM #6
try vbox layout :
and set flex for the second item :Code:config:
layout:'vbox',items: \
Code:xtype: 'fieldset' flex:1 title: 'Set itinerary details'


Reply With Quote