|
我使用contents,然后根据后台数据动态添加了几个windowContainer,每个windowContainer对应一个.w文件,但是发现,在这个.w文件里所有组件,只要我设置height,全部会变成两倍,比方设置height:100px,实际全部会变成200左右,此现象在pc上没问题,包括在微信pc版的窗口里也是正常的,但是手机上看到全是放大的
请指教,非常感谢。
主w里代码:
<div class="x-panel-content x-cards" xid="productsListCards">
<div component="$UI/system/components/justep/contents/contents" class="x-contents x-full" slidable="true"
active="0" xid="ProductsContents" wrap="false" swipe="true" routable="true">
</div>
</div>
动态添加代码:
var WindowContainer = require("$UI/system/components/justep/windowContainer/windowContainer");
var oCategoryList;
var oParm;
var oWindowContainer;
oCategoryList = oContent.add({
xid : 'homeCategoryContent'
});
oParm = {
xid : 'categoryHomeContainer',
parentNode : oCategoryList.domNode,
};
oWindowContainer = new WindowContainer(oParm);
oWindowContainer.set({
autoLoad : true,
class : 'x-window-container',
owner : obj.row.val("Module_ID"),
src : require.toUrl("./categoryHome.w")
});
oContent.to(0);
然后categoryHome.w里所有组件高度都是设置的两倍,感觉被放大了似的,如果是,应该在哪设置不放大啊?
|
|