|
|
@ -126,11 +126,13 @@ 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) { |
|
|
|
comp.setBounds(0, 0, width, WTitleLayout.TITLE_HEIGHT); |
|
|
|
if (comp == title) { |
|
|
|
} else if (comp != null && comp == body) { |
|
|
|
comp.setBounds(0, 0, width, WTitleLayout.TITLE_HEIGHT); |
|
|
|
int y = titleH+gap; |
|
|
|
} else if (comp == body) { |
|
|
|
comp.setBounds(0, y, width, height-y); |
|
|
|
int y = titleH + gap; |
|
|
|
|
|
|
|
comp.setBounds(0, y, width, height-y); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|