PDA

View Full Version : Accordion layout addButton() bug GXT 2.1



badams
18 Jan 2010, 2:48 PM
When attempting to do a addButton() on a ContentPanel for a LayoutContainer with AccordionLayout in GXT 2.1.0 the panel doesn't render the footer correctly when expanding a collapsed panel. Looking for a fix or work around.

appamail@hotmail.com
27 Jan 2010, 2:28 AM
I meet this problem, too. Any one can provide a suggestion?

badams
27 Jan 2010, 9:12 AM
I found a workaround. Though I believe this is a bug and it may be fixed in 2.1.1. The workaround I did was panel.getButtonBar().setEnableOverflow(false); This fixed showing the buttons but when rendered in Firefox 3.0.3 the icons for the buttons are centered on top of the button text. Hope that gets fixed too.

appamail@hotmail.com
27 Jan 2010, 5:42 PM
Thx, it works well now! Thanks for you reply.

badams
4 Feb 2010, 7:37 PM
This is STILL a bug in FireFox with GXT 2.1.1. The Footer displays correctly now in IE7 however if you do addButton() with button Icons (again, in FireFox 3) it doesn't layout correctly. Can anyone on the GXT dev team confirm this please so it can get fixed?