|
|
|
@ -14,6 +14,7 @@ import com.fr.design.form.util.FormDesignerUtils;
|
|
|
|
|
import com.fr.design.fun.WidgetPropertyUIProvider; |
|
|
|
|
import com.fr.design.mainframe.CoverReportPane; |
|
|
|
|
import com.fr.design.mainframe.EditingMouseListener; |
|
|
|
|
import com.fr.design.mainframe.FormArea; |
|
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
|
import com.fr.design.mainframe.WidgetPropertyPane; |
|
|
|
|
import com.fr.form.ui.Connector; |
|
|
|
@ -46,6 +47,7 @@ public class XWAbsoluteLayout extends XLayoutContainer {
|
|
|
|
|
private int minHeight = WLayout.MIN_HEIGHT; |
|
|
|
|
private static final Color OUTER_BORDER_COLOR = new Color(65, 155, 249, 30); |
|
|
|
|
private static final Color INNER_BORDER_COLOR = new Color(65, 155, 249); |
|
|
|
|
private static final double DEFAULT_CONTAINER_PERCENT = 1.0D; |
|
|
|
|
|
|
|
|
|
private HashMap<Connector, XConnector> xConnectorMap; |
|
|
|
|
|
|
|
|
@ -177,8 +179,8 @@ public class XWAbsoluteLayout extends XLayoutContainer {
|
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public void updateChildBound(int minHeight) { |
|
|
|
|
double prevContainerPercent = FRScreen.getFRScreenByDimension(toData().getDesigningResolution()).getValue() / 100; |
|
|
|
|
if (!AssistUtils.equals(1.0D, prevContainerPercent)) { |
|
|
|
|
double prevContainerPercent = FRScreen.getFRScreenByDimension(toData().getDesigningResolution()).getValue() / FormArea.DEFAULT_SLIDER; |
|
|
|
|
if (!AssistUtils.equals(DEFAULT_CONTAINER_PERCENT, prevContainerPercent)) { |
|
|
|
|
for (int i = 0; i < this.getComponentCount(); i++) { |
|
|
|
|
XCreator creator = getXCreator(i); |
|
|
|
|
Rectangle rec = new Rectangle(creator.getBounds()); |
|
|
|
|