IDEMPIERE-4277 Sizing error for Info Window and Error message popup (#42)
Fix size error of infowindow's parameter panel and ad window's error message popup.
This commit is contained in:
parent
4da87fa96b
commit
a84c1eac2f
|
@ -465,7 +465,6 @@ public final class LayoutUtils {
|
|||
LayoutUtils.removeSclass("slide", (HtmlBasedComponent) evt.getTarget());
|
||||
else
|
||||
LayoutUtils.addSclass("slide", (HtmlBasedComponent) evt.getTarget());
|
||||
evt.getTarget().invalidate();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.zkoss.zk.ui.Executions;
|
|||
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.util.Clients;
|
||||
import org.zkoss.zk.ui.util.Notification;
|
||||
import org.zkoss.zul.Caption;
|
||||
import org.zkoss.zul.Div;
|
||||
import org.zkoss.zul.Hlayout;
|
||||
|
@ -170,7 +170,7 @@ public class StatusBar extends Panel implements EventListener<Event>
|
|||
|
||||
String labelText = buildLabelText(m_statusText);
|
||||
if (error) {
|
||||
Clients.showNotification(buildNotificationText(m_statusText), "error", findTabpanel(this), "top_left", 3500, true);
|
||||
Notification.show(buildNotificationText(m_statusText), "error", findTabpanel(this), "top_left", 3500, true);
|
||||
}
|
||||
Label label = new Label(labelText);
|
||||
messageContainer.setSclass(error ? "docstatus-error" : "docstatus-normal");
|
||||
|
@ -287,6 +287,7 @@ public class StatusBar extends Panel implements EventListener<Event>
|
|||
private void createPopup() {
|
||||
msgPopupCnt = new Div();
|
||||
ZKUpdateUtil.setVflex(msgPopupCnt, "1");
|
||||
msgPopupCnt.setStyle("flex-basis: auto");
|
||||
|
||||
|
||||
msgPopup = new Window();
|
||||
|
|
|
@ -1252,10 +1252,6 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
|||
layout = new Borderlayout();
|
||||
ZKUpdateUtil.setWidth(layout, "100%");
|
||||
ZKUpdateUtil.setHeight(layout, "100%");
|
||||
if (!isLookup())
|
||||
{
|
||||
layout.setStyle("position: relative");
|
||||
}
|
||||
this.appendChild(layout);
|
||||
|
||||
if (isLookup())
|
||||
|
@ -1269,8 +1265,9 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
|||
North north = new North();
|
||||
north.setCollapsible(true);
|
||||
north.setSplittable(true);
|
||||
north.setAutoscroll(true);
|
||||
north.setAutoscroll(true);
|
||||
LayoutUtils.addSlideSclass(north);
|
||||
ZKUpdateUtil.setVflex(north, "min");
|
||||
layout.appendChild(north);
|
||||
renderParameterPane(north);
|
||||
|
||||
|
|
|
@ -304,7 +304,6 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
|
|||
setBorder("none");
|
||||
ZKUpdateUtil.setWidth(this, "100%");
|
||||
ZKUpdateUtil.setHeight(this, "100%");
|
||||
setStyle("position: absolute");
|
||||
}
|
||||
|
||||
confirmPanel = new ConfirmPanel(true, true, true, true, true, true); // Elaine 2008/12/16
|
||||
|
|
Loading…
Reference in New Issue