* slight performance improvement.
This commit is contained in:
parent
c9fea0e495
commit
aa7dfe359b
|
@ -68,11 +68,6 @@ public class CompositeADTab extends AbstractADTab
|
||||||
return div;
|
return div;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Component getRootComponent() {
|
|
||||||
return div;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doAddTab(GridTab gTab, ADTabpanel tabPanel) {
|
protected void doAddTab(GridTab gTab, ADTabpanel tabPanel) {
|
||||||
tabPanel.setParent(div);
|
tabPanel.setParent(div);
|
||||||
|
|
|
@ -85,12 +85,6 @@ public class ADWindowPanel extends AbstractADWindowPanel
|
||||||
toolbar.setHeight("30px");
|
toolbar.setHeight("30px");
|
||||||
toolbar.setParent(n);
|
toolbar.setParent(n);
|
||||||
|
|
||||||
contentArea = new Center();
|
|
||||||
contentArea.setParent(layout);
|
|
||||||
contentArea.setAutoscroll(true);
|
|
||||||
contentArea.setFlex(true);
|
|
||||||
adTab.createPart(contentArea);
|
|
||||||
|
|
||||||
South s = new South();
|
South s = new South();
|
||||||
layout.appendChild(s);
|
layout.appendChild(s);
|
||||||
s.setCollapsible(false);
|
s.setCollapsible(false);
|
||||||
|
@ -108,6 +102,12 @@ public class ADWindowPanel extends AbstractADWindowPanel
|
||||||
LayoutUtils.addSclass("adwindow-nav-content", (HtmlBasedComponent) adTab.getTabSelectionComponent());
|
LayoutUtils.addSclass("adwindow-nav-content", (HtmlBasedComponent) adTab.getTabSelectionComponent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
contentArea = new Center();
|
||||||
|
contentArea.setParent(layout);
|
||||||
|
contentArea.setAutoscroll(true);
|
||||||
|
contentArea.setFlex(true);
|
||||||
|
adTab.createPart(contentArea);
|
||||||
|
|
||||||
if (parent instanceof Tabpanel) {
|
if (parent instanceof Tabpanel) {
|
||||||
TabOnCloseHanlder handler = new TabOnCloseHanlder();
|
TabOnCloseHanlder handler = new TabOnCloseHanlder();
|
||||||
((Tabpanel)parent).setOnCloseHandler(handler);
|
((Tabpanel)parent).setOnCloseHandler(handler);
|
||||||
|
|
|
@ -131,7 +131,7 @@ public class WindowContainer extends AbstractUIPart implements EventListener
|
||||||
private void deferLayout() {
|
private void deferLayout() {
|
||||||
Tabpanel panel = (Tabpanel) tabbox.getSelectedPanel();
|
Tabpanel panel = (Tabpanel) tabbox.getSelectedPanel();
|
||||||
if (panel.getFirstChild() instanceof Borderlayout) {
|
if (panel.getFirstChild() instanceof Borderlayout) {
|
||||||
LayoutUtils.sendDeferLayoutEvent((Borderlayout) panel.getChildren().get(0), 350);
|
LayoutUtils.sendDeferLayoutEvent((Borderlayout) panel.getChildren().get(0), 50);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue