|
|
|
@ -569,6 +569,33 @@ public class XWAbsoluteLayout extends XLayoutContainer {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 重新调整子组件宽度 |
|
|
|
|
* @param width 宽度 |
|
|
|
|
* @param actualSize 是否按照实际大小计算 |
|
|
|
|
*/ |
|
|
|
|
public void recalculateChildWidth(int width, boolean actualSize){ |
|
|
|
|
int componentCont = getComponentCount(); |
|
|
|
|
for (int i = 0; i < componentCont; i++) { |
|
|
|
|
XCreator creator = (XCreator) getComponent(i); |
|
|
|
|
creator.recalculateChildWidth(width, actualSize); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 重新调整子组件高度 |
|
|
|
|
* @param height 高度 |
|
|
|
|
* @param actualSize 是否按照实际大小计算 |
|
|
|
|
*/ |
|
|
|
|
public void recalculateChildHeight(int height, boolean actualSize){ |
|
|
|
|
int componentCont = getComponentCount(); |
|
|
|
|
for (int i = 0; i < componentCont; i++) { |
|
|
|
|
XCreator creator = (XCreator) getComponent(i); |
|
|
|
|
creator.recalculateChildHeight(height, actualSize); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* body大小手动调整的时候 |
|
|
|
|
* 按照比例调整组件的高度 |
|
|
|
|