|
|
@ -38,7 +38,7 @@ public class FRAbsoluteLayoutAdapter extends FRBodyLayoutAdapter { |
|
|
|
public HoverPainter getPainter() { |
|
|
|
public HoverPainter getPainter() { |
|
|
|
return painter; |
|
|
|
return painter; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 是否能在指定位置添加组件 |
|
|
|
* 是否能在指定位置添加组件 |
|
|
|
* @param creator 组件 |
|
|
|
* @param creator 组件 |
|
|
@ -240,7 +240,8 @@ public class FRAbsoluteLayoutAdapter extends FRBodyLayoutAdapter { |
|
|
|
updateCreatorBackBound(); |
|
|
|
updateCreatorBackBound(); |
|
|
|
LayoutUtils.layoutRootContainer(container); |
|
|
|
LayoutUtils.layoutRootContainer(container); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
fixAbsolute(creator, x, y); |
|
|
|
//添加到其父组件布局中的时候,要用其父组件布局添加
|
|
|
|
|
|
|
|
container.getLayoutAdapter().addBean(creator, x, y); |
|
|
|
if (creator.shouldScaleCreator() || creator.hasTitleStyle()) { |
|
|
|
if (creator.shouldScaleCreator() || creator.hasTitleStyle()) { |
|
|
|
addParentCreator(creator); |
|
|
|
addParentCreator(creator); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -303,7 +304,7 @@ public class FRAbsoluteLayoutAdapter extends FRBodyLayoutAdapter { |
|
|
|
XWAbsoluteLayout layout = (XWAbsoluteLayout) container; |
|
|
|
XWAbsoluteLayout layout = (XWAbsoluteLayout) container; |
|
|
|
layout.updateBoundsWidget(creator); |
|
|
|
layout.updateBoundsWidget(creator); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 调整组件大小到合适尺寸位置 |
|
|
|
* 调整组件大小到合适尺寸位置 |
|
|
|
* @param creator 组件 |
|
|
|
* @param creator 组件 |
|
|
@ -338,4 +339,4 @@ public class FRAbsoluteLayoutAdapter extends FRBodyLayoutAdapter { |
|
|
|
XWAbsoluteLayout xwAbsoluteLayout = (XWAbsoluteLayout) container; |
|
|
|
XWAbsoluteLayout xwAbsoluteLayout = (XWAbsoluteLayout) container; |
|
|
|
return new FRAbsoluteLayoutPropertiesGroupModel(xwAbsoluteLayout); |
|
|
|
return new FRAbsoluteLayoutPropertiesGroupModel(xwAbsoluteLayout); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|