IDEMPIERE-1789 remove grid border from workflow window
This commit is contained in:
parent
cac1e2d290
commit
8786638e1e
|
@ -49,6 +49,7 @@ public class WFNodeContainer
|
||||||
private int currentRow = 1;
|
private int currentRow = 1;
|
||||||
private int currentColumn = 0;
|
private int currentColumn = 0;
|
||||||
private int noOfColumns = 4;
|
private int noOfColumns = 4;
|
||||||
|
private int maxColumn = 0;
|
||||||
private int rowCount = 0;
|
private int rowCount = 0;
|
||||||
|
|
||||||
private WorkflowGraphScene graphScene = new WorkflowGraphScene();
|
private WorkflowGraphScene graphScene = new WorkflowGraphScene();
|
||||||
|
@ -146,6 +147,9 @@ public class WFNodeContainer
|
||||||
w.setRow(currentRow);
|
w.setRow(currentRow);
|
||||||
|
|
||||||
nodes[currentColumn - 1] = node.getAD_WF_Node_ID();
|
nodes[currentColumn - 1] = node.getAD_WF_Node_ID();
|
||||||
|
if (currentColumn > maxColumn) {
|
||||||
|
maxColumn = currentColumn;
|
||||||
|
}
|
||||||
|
|
||||||
if (currentRow < oldRow) {
|
if (currentRow < oldRow) {
|
||||||
currentRow = oldRow;
|
currentRow = oldRow;
|
||||||
|
@ -227,6 +231,10 @@ public class WFNodeContainer
|
||||||
return noOfColumns;
|
return noOfColumns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getMaxColumnWithNode() {
|
||||||
|
return maxColumn;
|
||||||
|
}
|
||||||
|
|
||||||
public GraphScene<Integer, MWFNodeNext> getGraphScene() {
|
public GraphScene<Integer, MWFNodeNext> getGraphScene() {
|
||||||
return graphScene;
|
return graphScene;
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,14 +187,15 @@ public class WFPanel extends Borderlayout implements EventListener<Event>, IHelp
|
||||||
|
|
||||||
try {
|
try {
|
||||||
int row = nodeContainer.getRowCount();
|
int row = nodeContainer.getRowCount();
|
||||||
|
int maxCol = nodeContainer.getMaxColumnWithNode();
|
||||||
for(int i = 0; i < row; i++) {
|
for(int i = 0; i < row; i++) {
|
||||||
Tr tr = new Tr();
|
Tr tr = new Tr();
|
||||||
table.appendChild(tr);
|
table.appendChild(tr);
|
||||||
for(int c = 0; c < 4; c++) {
|
for(int c = 0; c < maxCol; c++) {
|
||||||
BufferedImage t = new BufferedImage(WFGraphLayout.COLUMN_WIDTH, WFGraphLayout.ROW_HEIGHT, BufferedImage.TYPE_INT_ARGB);
|
BufferedImage t = new BufferedImage(WFGraphLayout.COLUMN_WIDTH, WFGraphLayout.ROW_HEIGHT, BufferedImage.TYPE_INT_ARGB);
|
||||||
Graphics2D tg = t.createGraphics();
|
Graphics2D tg = t.createGraphics();
|
||||||
Td td = new Td();
|
Td td = new Td();
|
||||||
// td.setStyle("border: 1px dotted lightgray");
|
td.setSclass("workflow-panel-table");
|
||||||
tr.appendChild(td);
|
tr.appendChild(td);
|
||||||
|
|
||||||
int x = c * WFGraphLayout.COLUMN_WIDTH;
|
int x = c * WFGraphLayout.COLUMN_WIDTH;
|
||||||
|
|
|
@ -1764,6 +1764,10 @@ table.z-vbox > tbody > tr > td > table {
|
||||||
.workflow-activity-form {
|
.workflow-activity-form {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.workflow-panel-table {
|
||||||
|
border: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
<%-- find window --%>
|
<%-- find window --%>
|
||||||
.find-window {
|
.find-window {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue