|
|
|
@ -24,6 +24,8 @@ import com.fr.form.ui.LayoutBorderStyle;
|
|
|
|
|
import com.fr.form.ui.container.WAbsoluteBodyLayout; |
|
|
|
|
import com.fr.form.ui.container.WAbsoluteLayout; |
|
|
|
|
import com.fr.form.ui.container.WBodyLayoutType; |
|
|
|
|
import com.fr.form.ui.container.WFitLayout; |
|
|
|
|
import com.fr.general.act.BorderPacker; |
|
|
|
|
import com.fr.report.core.ReportUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
@ -150,6 +152,11 @@ public class FRAbsoluteBodyLayoutDefinePane extends FRAbsoluteLayoutDefinePane {
|
|
|
|
|
if (state == WBodyLayoutType.FIT.getTypeValue()) { |
|
|
|
|
XWFitLayout xwFitLayout = ((XWFitLayout)creator.getBackupParent()); |
|
|
|
|
xwFitLayout.switch2FitBodyLayout(creator); |
|
|
|
|
WFitLayout wFitLayout = xwFitLayout.toData(); |
|
|
|
|
// 切换布局类型时,保留body背景样式
|
|
|
|
|
if (wFitLayout != null) { |
|
|
|
|
wFitLayout.setBorderStyle(layout.getBorderStyle()); |
|
|
|
|
} |
|
|
|
|
copyLayoutAttr(layout, xwFitLayout.toData()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|