Browse Source

bug104400传master(紧急bug)

master
zack 8 years ago
parent
commit
bca32e9cab
  1. 16
      designer_form/src/com/fr/design/designer/beans/adapters/layout/FRBodyLayoutAdapter.java

16
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()) {
if (cX - DEFAULT_AREA_LENGTH > margin.getLeft()) {
Component targetRightComp = container.getLeftComp(cX, y);
minLeftW = getMinLeftWidth(targetRightComp, cX-DEFAULT_AREA_LENGTH);
minLeftW = getMinLeftWidth(targetRightComp, cX - DEFAULT_AREA_LENGTH - actualVal);//bug104400没算上间隔
}
dealTrisectAtRight(child, minLeftW, minRightW);
}

Loading…
Cancel
Save