|
|
|
@ -764,6 +764,7 @@ public class XWFitLayout extends XLayoutContainer {
|
|
|
|
|
creator.setBackupBound(creator.getBounds()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
LayoutUtils.layoutContainer(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private Rectangle recalculateWidgetBounds(Rectangle rec, int[] hors, int[] veris) { |
|
|
|
@ -831,11 +832,7 @@ public class XWFitLayout extends XLayoutContainer {
|
|
|
|
|
this.remove(oldCreator); |
|
|
|
|
this.add(newCreator); |
|
|
|
|
dealDirections(newCreator, false); |
|
|
|
|
//对于新增的绝对布局的组件,需要更新下内部组件的大小
|
|
|
|
|
if (newCreator.acceptType(XWAbsoluteLayout.class)){ |
|
|
|
|
((XWAbsoluteLayout) newCreator).updateBoundsWidget(); |
|
|
|
|
newCreator.setBackupBound(newCreator.getBounds()); |
|
|
|
|
} |
|
|
|
|
this.updateBoundsWidget(); |
|
|
|
|
isRefreshing = false; |
|
|
|
|
LayoutUtils.layoutContainer(this); |
|
|
|
|
} |
|
|
|
|