PDA

View Full Version : Issue with BorderLayoutContainer



kenhwallis
19 Dec 2011, 8:43 AM
BorderLayoutContainer example (http://www.sencha.com/examples-dev/#ExamplePlace:borderlayout) has issues when one of the border regions is hidden. Its corresponding collapse icon remains visible in its original location even tho its region/panel is removed.

kenhwallis
19 Dec 2011, 9:06 AM
Porting working code from GXT 2.2 into 3.0 Beta 1, the South region content is appearing at "-height" above the North region. The effectively makes it invisible above the browser viewing area.

Using IE8.

Relevant code:
BorderLayoutContainer parentContainer = new BorderLayoutContainer();
parentContainer.setBorders(true);

int[] footerPanelSize = new int[] {height, width};
BorderLayoutData southData = new BorderLayoutData(footerPanelSize[0]);
southData.setMargins(new Margins(5, 0, 0, 0));
southData.setCollapsible(false);
southData.setFloatable(false);
southData.setCollapseHidden(true);
southData.setSplit(false);
footerPanel = new ContentPanel();
footerPanel.setHeaderVisible(false);
footerPanel.setHeight(footerPanelSize[0]);
footerPanel.setWidth(footerPanelSize[1]);
footerPanel.add(getFooter()); // routine creating simple HTML copyright statement for 'current' app
parentContainer.setSouthWidget(footerPanel, southData);

kenhwallis
19 Dec 2011, 10:07 AM
Same behaviors for placement of South region confirmed in Chrome and Firefox 3.6 using previous post's code snippet

EthiC
19 Jan 2012, 4:57 AM
At http://staging.sencha.com:8080/examples-dev/#ExamplePlace:borderlayout there is also a bug with the collapse-mini icon appearing on the left, after you collapse the north region. Try it out :)