Fixed window size problem reported here:
https://sourceforge.net/tracker/?func=detail&aid=2723620&group_id=176962&atid=955896
This commit is contained in:
parent
adc5616ceb
commit
8c9bb8bfa9
|
@ -61,6 +61,7 @@ import org.adempiere.webui.component.Tabpanels;
|
||||||
import org.adempiere.webui.component.Tabs;
|
import org.adempiere.webui.component.Tabs;
|
||||||
import org.adempiere.webui.component.Textbox;
|
import org.adempiere.webui.component.Textbox;
|
||||||
import org.adempiere.webui.component.WListbox;
|
import org.adempiere.webui.component.WListbox;
|
||||||
|
import org.adempiere.webui.session.SessionManager;
|
||||||
import org.compiere.minigrid.ColumnInfo;
|
import org.compiere.minigrid.ColumnInfo;
|
||||||
import org.compiere.minigrid.IDColumn;
|
import org.compiere.minigrid.IDColumn;
|
||||||
import org.compiere.model.MClient;
|
import org.compiere.model.MClient;
|
||||||
|
@ -403,6 +404,9 @@ public final class InfoProductPanel extends InfoPanel implements EventListener
|
||||||
desktopTabPanel.appendChild(m_tableAtp);
|
desktopTabPanel.appendChild(m_tableAtp);
|
||||||
tabPanels.appendChild(desktopTabPanel);
|
tabPanels.appendChild(desktopTabPanel);
|
||||||
//
|
//
|
||||||
|
int height = SessionManager.getAppDesktop().getClientInfo().desktopHeight * 90 / 100;
|
||||||
|
int width = SessionManager.getAppDesktop().getClientInfo().desktopWidth * 80 / 100;
|
||||||
|
|
||||||
borderlayout.setWidth("100%");
|
borderlayout.setWidth("100%");
|
||||||
borderlayout.setHeight("100%");
|
borderlayout.setHeight("100%");
|
||||||
borderlayout.setStyle("border: none; position: relative");
|
borderlayout.setStyle("border: none; position: relative");
|
||||||
|
@ -412,7 +416,8 @@ public final class InfoProductPanel extends InfoPanel implements EventListener
|
||||||
borderlayout.appendChild(center);
|
borderlayout.appendChild(center);
|
||||||
center.appendChild(contentPanel);
|
center.appendChild(contentPanel);
|
||||||
South south = new South();
|
South south = new South();
|
||||||
south.setHeight("120px");
|
int detailHeight = (height * 25 / 100);
|
||||||
|
south.setHeight(detailHeight + "px");
|
||||||
south.setCollapsible(true);
|
south.setCollapsible(true);
|
||||||
south.setSplittable(true);
|
south.setSplittable(true);
|
||||||
south.setFlex(true);
|
south.setFlex(true);
|
||||||
|
@ -437,8 +442,9 @@ public final class InfoProductPanel extends InfoPanel implements EventListener
|
||||||
this.appendChild(mainPanel);
|
this.appendChild(mainPanel);
|
||||||
this.setClosable(true);
|
this.setClosable(true);
|
||||||
this.setBorder("normal");
|
this.setBorder("normal");
|
||||||
this.setWidth("1000px");
|
|
||||||
this.setHeight("650px");
|
this.setWidth(width + "px");
|
||||||
|
this.setHeight(height + "px");
|
||||||
|
|
||||||
contentPanel.addActionListener(new EventListener() {
|
contentPanel.addActionListener(new EventListener() {
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue