IDEMPIERE-369 Master Detail layout improvements. Revert back to pixel height for adwindow-gridview-detail due to performance issue.

This commit is contained in:
Heng Sin Low 2012-11-30 17:56:25 +08:00
parent 566df6608e
commit e852eefa2e
3 changed files with 4 additions and 19 deletions

View File

@ -571,8 +571,6 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
private void initFirstTabpanel() {
adTabbox.getSelectedTabpanel().query(m_onlyCurrentRows, m_onlyCurrentDays, MRole.getDefault().getMaxQueryRecords());
adTabbox.getSelectedTabpanel().activate(true);
Events.postEvent(new Event(CompositeADTabbox.ON_POST_INIT_EVENT, adTabbox.getComponent(), null));
}
/**
@ -2635,6 +2633,8 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
}
private void updateUI(ProcessInfo pi) {
// Timeout
if (pi.isTimeout()) // set temporarily to R/O
Env.setContext(ctx, curWindowNo, "Processed", "Y");
@ -2648,7 +2648,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
String logInfo = pi.getLogInfo();
if (logInfo.length() > 0)
FDialog.info(curWindowNo, this.getComponent(), Env.getHeader(ctx, curWindowNo),
pi.getTitle() + "<br>" + logInfo);
pi.getTitle() + "<br>" + logInfo);
}
/**

View File

@ -42,7 +42,6 @@ import org.zkoss.zk.ui.HtmlBasedComponent;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zk.ui.sys.ExecutionCtrl;
import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zul.Menuitem;
import org.zkoss.zul.Vlayout;
@ -202,20 +201,6 @@ public class CompositeADTabbox extends AbstractADTabbox
}
});
layout.addEventListener(ON_POST_INIT_EVENT, new EventListener<Event>() {
@Override
public void onEvent(Event event) throws Exception {
ExecutionCtrl ctrl = (ExecutionCtrl) Executions.getCurrent();
Event evt = ctrl.getNextEvent();
if (evt != null) {
Events.sendEvent(evt);
Events.postEvent(new Event(ON_POST_INIT_EVENT, layout));
return;
}
LayoutUtils.redraw(layout);
}
});
return layout;
}

View File

@ -546,7 +546,7 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
}
.adwindow-gridview-detail {
height: 40%;
height: 200px;
}
.adwindow-gridview-detail + .z-south-splt {