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