|
|
@ -1048,17 +1048,10 @@ public class FRFitLayoutAdapter extends FRBodyLayoutAdapter { |
|
|
|
XWTabFitLayout tabLayout = (XWTabFitLayout) childrenList.get(j); |
|
|
|
XWTabFitLayout tabLayout = (XWTabFitLayout) childrenList.get(j); |
|
|
|
tabLayout.setBackupBound(tabLayout.getBounds()); |
|
|
|
tabLayout.setBackupBound(tabLayout.getBounds()); |
|
|
|
int refSize = isHor ? tabLayout.getWidth() : tabLayout.getHeight(); |
|
|
|
int refSize = isHor ? tabLayout.getWidth() : tabLayout.getHeight(); |
|
|
|
//double percent = (double) offset / refSize;
|
|
|
|
|
|
|
|
double percent = offset / (double) (refSize - offset); |
|
|
|
double percent = offset / (double) (refSize - offset); |
|
|
|
if (percent < 0 && !tabLayout.canReduce(percent)) { |
|
|
|
if (percent < 0 && !tabLayout.canReduce(percent)) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
//setAdjustedSize(tabLayout, offset, isHor);
|
|
|
|
|
|
|
|
// for (int m = 0; m < tabLayout.getComponentCount(); m++) {
|
|
|
|
|
|
|
|
// XCreator childCreator = tabLayout.getXCreator(m);
|
|
|
|
|
|
|
|
// WAbsoluteLayout.BoundsWidget wgt = (WAbsoluteLayout.BoundsWidget) tabLayout.toData().getBoundsWidget(childCreator.toData());
|
|
|
|
|
|
|
|
// wgt.setBounds(tabLayout.getComponent(m).getBounds());
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
for (int m = 0; m < tabLayout.getComponentCount(); m++) { |
|
|
|
for (int m = 0; m < tabLayout.getComponentCount(); m++) { |
|
|
|
XCreator childCreator = tabLayout.getXCreator(m); |
|
|
|
XCreator childCreator = tabLayout.getXCreator(m); |
|
|
|
WAbsoluteLayout.BoundsWidget wgt = (WAbsoluteLayout.BoundsWidget) tabLayout.toData().getBoundsWidget(childCreator.toData()); |
|
|
|
WAbsoluteLayout.BoundsWidget wgt = (WAbsoluteLayout.BoundsWidget) tabLayout.toData().getBoundsWidget(childCreator.toData()); |
|
|
|