Browse Source

Pull request #2003: REPORT-36386 自适应模板出现不自适应情况

Merge in DESIGN/design from ~HADES/design:bugfix/10.0 to bugfix/10.0

* commit '9d434f6b36d2cb452d10a1187ea5fae7764397c7':
  REPORT-36386 自适应模板出现不自适应情况
bugfix/10.0
Hades 4 years ago
parent
commit
76080b2698
  1. 8
      designer-form/src/main/java/com/fr/design/designer/creator/XWFitLayout.java

8
designer-form/src/main/java/com/fr/design/designer/creator/XWFitLayout.java

@ -19,6 +19,7 @@ import com.fr.form.ui.container.WBodyLayoutType;
import com.fr.form.ui.container.WFitLayout;
import com.fr.form.ui.container.WLayout;
import com.fr.form.ui.widget.CRBoundsWidget;
import com.fr.general.ComparatorUtils;
import com.fr.general.FRLogger;
import com.fr.general.FRScreen;
import com.fr.stable.ArrayUtils;
@ -1125,7 +1126,12 @@ public class XWFitLayout extends XLayoutContainer {
public Component getBottomComp(int x, int y, int h) {
int val = getAcualInterval();
return this.getComponentAt(x, y+h+default_Length+val);
Component comp = this.getComponentAt(x, y+h+default_Length+val);
if (ComparatorUtils.equals(this, comp)) {
// 如果获取组件等于自身 说明存在偏移 加上一个默认偏移量
return this.getComponentAt(x + default_Length, y+h+default_Length+val);
}
return comp;
}
public Component getRightTopComp(int x, int y, int w) {

Loading…
Cancel
Save