|
|
@ -111,7 +111,7 @@ public class XWAbsoluteLayout extends XLayoutContainer { |
|
|
|
private void initPercent(WAbsoluteLayout widget) { |
|
|
|
private void initPercent(WAbsoluteLayout widget) { |
|
|
|
Toolkit toolkit = Toolkit.getDefaultToolkit(); |
|
|
|
Toolkit toolkit = Toolkit.getDefaultToolkit(); |
|
|
|
Dimension scrnsize = toolkit.getScreenSize(); |
|
|
|
Dimension scrnsize = toolkit.getScreenSize(); |
|
|
|
double screenValue = FRScreen.getByDimension(scrnsize).getValue(); |
|
|
|
double screenValue = FRScreen.getDesignScreenByDimension(scrnsize).getValue(); |
|
|
|
if (!AssistUtils.equals(screenValue, FormArea.DEFAULT_SLIDER)) { |
|
|
|
if (!AssistUtils.equals(screenValue, FormArea.DEFAULT_SLIDER)) { |
|
|
|
this.setContainerPercent(screenValue / FormArea.DEFAULT_SLIDER); |
|
|
|
this.setContainerPercent(screenValue / FormArea.DEFAULT_SLIDER); |
|
|
|
} |
|
|
|
} |
|
|
@ -247,7 +247,7 @@ public class XWAbsoluteLayout extends XLayoutContainer { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void updateChildBound(int minHeight) { |
|
|
|
public void updateChildBound(int minHeight) { |
|
|
|
double prevContainerPercent = FRScreen.getByDimension(toData().getDesigningResolution()).getValue() / FormArea.DEFAULT_SLIDER; |
|
|
|
double prevContainerPercent = FRScreen.getDesignScreenByDimension(toData().getDesigningResolution()).getValue() / FormArea.DEFAULT_SLIDER; |
|
|
|
if (toData().getCompState() == 0 && !AssistUtils.equals(containerPercent, prevContainerPercent)) { |
|
|
|
if (toData().getCompState() == 0 && !AssistUtils.equals(containerPercent, prevContainerPercent)) { |
|
|
|
for (int i = 0; i < this.getComponentCount(); i++) { |
|
|
|
for (int i = 0; i < this.getComponentCount(); i++) { |
|
|
|
XCreator creator = getXCreator(i); |
|
|
|
XCreator creator = getXCreator(i); |
|
|
|