|
|
@ -886,6 +886,7 @@ public class XWFitLayout extends XLayoutContainer { |
|
|
|
isRefreshing = true; |
|
|
|
isRefreshing = true; |
|
|
|
this.remove(oldCreator); |
|
|
|
this.remove(oldCreator); |
|
|
|
this.add(newCreator); |
|
|
|
this.add(newCreator); |
|
|
|
|
|
|
|
dealDirections(newCreator, false); |
|
|
|
//对于新增的绝对布局的组件,需要更新下内部组件的大小
|
|
|
|
//对于新增的绝对布局的组件,需要更新下内部组件的大小
|
|
|
|
if (newCreator.acceptType(XWAbsoluteLayout.class)){ |
|
|
|
if (newCreator.acceptType(XWAbsoluteLayout.class)){ |
|
|
|
((XWAbsoluteLayout) newCreator).updateBoundsWidget(); |
|
|
|
((XWAbsoluteLayout) newCreator).updateBoundsWidget(); |
|
|
|