Browse Source

Merge pull request #318 in BA/design from ~ZACK/design:master to master

* commit 'bca32e9cab13e02eac1759e9d9cab6feb9759e87':
  bug104400传master(紧急bug)
master
superman 8 years ago
parent
commit
9b310a25d1
  1. 20
      designer_form/src/com/fr/design/designer/beans/adapters/layout/FRBodyLayoutAdapter.java

20
designer_form/src/com/fr/design/designer/beans/adapters/layout/FRBodyLayoutAdapter.java

@ -911,23 +911,23 @@ public class FRBodyLayoutAdapter extends AbstractLayoutAdapter{
minUpH = getUpMinHeightComp(cY, x);
minDownH = getDownMinHeightComp(currentComp, y);
dealTrisectAtTop(child, minUpH, minDownH);
} else if(ComparatorUtils.equals(trisectAreaDirect, COMP_BOTTOM)) {
minUpH = getUpMinHeightComp(cY+cH+actualVal, x);
if (cY+cH+DEFAULT_AREA_LENGTH<container.getHeight() - margin.getBottom()){
} else if (ComparatorUtils.equals(trisectAreaDirect, COMP_BOTTOM)) {
minUpH = getUpMinHeightComp(cY + cH + actualVal, x);
if (cY + cH + DEFAULT_AREA_LENGTH < container.getHeight() - margin.getBottom()) {
Component targetTopComp = container.getBottomComp(x, cY, cH);
minDownH = getDownMinHeightComp(targetTopComp, cY+cH+DEFAULT_AREA_LENGTH+actualVal);
minDownH = getDownMinHeightComp(targetTopComp, cY + cH + DEFAULT_AREA_LENGTH + actualVal);
}
dealTrisectAtTop(child, minUpH, minDownH);
} else if(ComparatorUtils.equals(trisectAreaDirect, COMP_RIGHT)) {
} else if (ComparatorUtils.equals(trisectAreaDirect, COMP_RIGHT)) {
minRightW = getMinRightWidth(cX, cW, y);
minLeftW = getMinLeftWidth(currentComp, x);
dealTrisectAtRight(child, minLeftW, minRightW);
} else if(ComparatorUtils.equals(trisectAreaDirect, COMP_LEFT)) {
} else if (ComparatorUtils.equals(trisectAreaDirect, COMP_LEFT)) {
// 当前组件就在右侧时,cW为0
minRightW = getMinRightWidth(cX, 0, y);
if(cX-DEFAULT_AREA_LENGTH > margin.getLeft()) {
Component targetRightComp = container.getLeftComp(cX, y);
minLeftW = getMinLeftWidth(targetRightComp, cX-DEFAULT_AREA_LENGTH);
minRightW = getMinRightWidth(cX, 0, y);
if (cX - DEFAULT_AREA_LENGTH > margin.getLeft()) {
Component targetRightComp = container.getLeftComp(cX, y);
minLeftW = getMinLeftWidth(targetRightComp, cX - DEFAULT_AREA_LENGTH - actualVal);//bug104400没算上间隔
}
dealTrisectAtRight(child, minLeftW, minRightW);
}

Loading…
Cancel
Save