Browse Source

无jira任务,sonar问题修复

research/11.0
author 5 years ago
parent
commit
733a6f2825
  1. 6
      designer-form/src/main/java/com/fr/design/form/layout/FRTitleLayout.java

6
designer-form/src/main/java/com/fr/design/form/layout/FRTitleLayout.java

@ -126,15 +126,17 @@ public class FRTitleLayout implements FRLayoutManager, LayoutManager{
int titleH = title==null ? 0 : WTitleLayout.TITLE_HEIGHT; int titleH = title==null ? 0 : WTitleLayout.TITLE_HEIGHT;
for (int i=0; i< target.getComponentCount(); i++) { for (int i=0; i< target.getComponentCount(); i++) {
Component comp = target.getComponent(i); Component comp = target.getComponent(i);
if (comp != null && comp == title) { if (comp != null) {
if (comp == title) {
comp.setBounds(0, 0, width, WTitleLayout.TITLE_HEIGHT); comp.setBounds(0, 0, width, WTitleLayout.TITLE_HEIGHT);
} else if (comp != null && comp == body) { } else if (comp == body) {
int y = titleH + gap; int y = titleH + gap;
comp.setBounds(0, y, width, height-y); comp.setBounds(0, y, width, height-y);
} }
} }
} }
} }
}
public Object getConstraints(Component comp) { public Object getConstraints(Component comp) {
if (comp == null){ if (comp == null){

Loading…
Cancel
Save