PDA

View Full Version : Accordion Layout Issue - v2.0 beta



projecta98
Mar 12, 2012, 9:30 PM
My apologies if this has been already reported. I search the forum for 'Accordion' but didn't find any relevant posts.

If a window with accordion layout is closed, it leaves some of the items on the screen. Similarly, the dragging the window is not natural.

See the following samples: (Close the accordion window and you will see some left over items)
http://examples2.ext.net/#/Layout/Accordion/Basic_in_Markup/
http://examples2.ext.net/#/Desktop/Introduction/Overview/


v1.x example seems to work OK: http://examples1.ext.net/#/Layout/Accordion/Basic_in_Markup/

Vladimir
Mar 12, 2012, 9:46 PM
Hi,

Thank you for the report. At this moment, I can suggest the following fix


<script type="text/javascript">
Ext.panel.Panel.override({
ghost : Ext.Function.createInterceptor(Ext.panel.Panel.pro totype.ghost, function(){
if (this.floating) {
this.el.setVisibilityMode(Ext.Element.DISPLAY);
}
})
});
</script>

Vladimir
Mar 12, 2012, 9:51 PM
Above fix is not correct in all cases
Try this


<script type="text/javascript">
Ext.panel.Panel.override({
afterRender : function(){
this.callParent(arguments);
if (this.floating) {
this.el.setVisibilityMode(Ext.Element.DISPLAY);
}
}
});
</script>

projecta98
Mar 12, 2012, 10:39 PM
Thanks, that fixed the issue (in my test code).