-
15 Mar 2012 1:08 PM #1
Disabling a FieldContainer makes children almost invisible
Disabling a FieldContainer makes children almost invisible
REQUIRED INFORMATIONExt version tested:
- Ext 4.1.0-rc1
- Ext 4.1.0-beta2
- IE8
- FF10 (firebug 1.3.0.10 installed)
- Safari 5
- disabling a field container also disables all of it's children, making them almost impossible to see.
- run the example
- FieldContainer disabled, but still being able to see the children
- FieldContainer is disabled but children are very difficult to see
HELPFUL INFORMATIONScreenshot or Video:Code:Ext.onReady(function() { var k_panel = Ext.create('Ext.form.Panel', { dockedItems: [ { xtype: 'toolbar', flex: 1, dock: 'top', items: [ { xtype: 'tbfill', flex: 1 },{ xtype : 'button', text : '+', listeners : { click : function(){ window.setHeight(window.getHeight() + 1); console.log(window.getHeight()); } } },{ xtype : 'button', text : '-', listeners : { click : function(){ window.setHeight(window.getHeight() - 1); console.log(window.getHeight()); } } }, { xtype: 'button', disabled: false, itemId: 'addTypeButton', iconCls: 'silk-add', label : 'blah', listeners : { click : function(){ k_panel.down('#typeContainer').add({ collapsible : true, flex : 1, title : 'test', xtype: 'fieldset', //id : 'fieldset', items : [{ xtype : 'checkbox', },{ xtype : 'fieldcontainer', disabled : true, items : [ { xtype: 'label', text : 'hi' }, { xtype: 'textfield', flex: 1, itemId: 'valueField', width : 400 }] }] }); }, scope : k_panel } } ] }, { xtype: 'toolbar', flex: 1, dock: 'bottom', items: [ { xtype: 'tbfill' }, { xtype: 'button', disabled: false, id: '', itemId: 'submitButton', iconCls: 'silk-magnifier ', formBind: true }, { xtype: 'button', itemId: 'clearButton', iconCls: 'silk-cross' } ] } ], layout: { align: 'stretch', type: 'vbox' }, items: [{ xtype: 'container', id: 'typeContainer', autoScroll: true, layout: { type: 'anchor' }, items : [{ collapsible : true, flex : 1, title : 'test', xtype: 'fieldset', items : [{ xtype : 'checkbox', },{ disabled : true, xtype : 'fieldcontainer', layout : 'fit', items : [ { xtype: 'label', text : 'hi' }, { xtype: 'textfield', flex: 1, itemId: 'valueField' }] }] }], flex: 1 } ] }); var window = Ext.create('Ext.window.Window', { layout : 'fit', height : 201, width : 432, items : [k_panel], renderTo: Ext.getBody() }); window.show(); });- attached
- none
- Mask children individually
- only default ext-all.css
- OSX
-
16 Mar 2012 12:27 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
Thanks for the report.
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.
You found a bug! We've classified it as
EXTJSIV-5638
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote