-
30 Nov 2012 7:41 AM #1
Unanswered: LoadMask exceeds it's panel when partially hidden from scrolling
Unanswered: LoadMask exceeds it's panel when partially hidden from scrolling
As you can see in the attached image, panels' LoadMasks exceed beyond their panel size. This happens only when the panel is in a scrollable container and the panel is partially hidden. If you can see the whole expanded panel, the LoadMask is fine and fits within the panel.
Code (stripped to it's skeletal form) :
Thank you for reading my problem!Code:{ layout:'column', autoScroll: true, items:[ { layout: 'anchor', autoScroll: true, items:[ { id:'Network', xtype:'form', collapsible: true, autoScroll:true, loadingMask:null, // starts as null constructor:function (config) { this.setHeight(this.maxHeight); return this.callParent(arguments); }, listeners:{ beforeexpand:function (panel, opts) { panel.loadingMask = new Ext.LoadMask(panel, {msg:"Loading screen..."}); panel.loadingMask.show(); }, } } ] } ] }
-
3 Dec 2012 4:48 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,084
- Vote Rating
- 453
- Answers
- 3153
You are masking a panel whose height is greater than the area that is visible. Sounds like you want to mask the parent panel.
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.
-
3 Dec 2012 12:01 PM #3
It seems the mask area should end where the panel's visibility ends. I need the LoadMask on the panel, not the parent. If there is no way to do this, I will file a feature request/bug fix.
-
3 Dec 2012 12:14 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,084
- Vote Rating
- 453
- Answers
- 3153
The current behavior is proper. If the panel has 400px, then all 400px should be masked. The panel doesn't know what is visibile and what isn't, that's the parent's job.
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.
-
4 Dec 2012 4:30 AM #5
'Ethernet' maybe configured as scrollable, but then something like accordion layout should be used in 'Network'.


Reply With Quote