2 Nov 2010 2:17 AM #1
Unmasking a TreePanel rendering issue
I've noticed that masking/unmasking a panel that has a scrollbar would scroll that panel at the top of it.
From what i understand the TreePanel has a buffered view with the tree nodes which are to be displayed. When you scroll, using the mouse, the view is updated with the needed tree nodes.
Lets take the case when you have a TreePanel which has many tree nodes, and the panel is scrolled at its bottom, if you mask/unmask the component it will jump at its top. At this point you will get a white panel because the view of the tree doesn't get updated and no tree nodes will be rendered. If you move the scollbar manualy, the tree nodes are rendered back again.
I think a listener is needed in order to update the TreePanel rendering when the components scrolls automatically.
2 Nov 2010 2:21 AM #2
Can you please post a fully working testcase for this? I have never seen this problem when masking a TreePanel.
2 Nov 2010 7:12 AM #3
Sorry about this, the issue was on my side.
My project uses a customized masking, and in the overriden mask method, the "x-masked" style was added before "x-masked-relative" style. Apparently, this makes any panel with scrollbar to jump to the top.
2 Nov 2010 7:17 AM #4
By the way, it would be nice in El class to have access to _maskMsg and _mask fields, so that we could easily change how the masking looks like.
2 Nov 2010 7:17 AM #5
2 Nov 2010 7:18 AM #6
By odig in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 14 Jul 2010, 8:25 PM
By joe123 in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 7 Dec 2009, 9:37 AM
By mango in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 1 Apr 2009, 6:59 AM
By devol in forum Ext 1.x: Help & DiscussionReplies: 18Last Post: 13 Oct 2006, 9:37 PM