我生成了一个滚动视图,里面有一个标题和一个圆形矩形列表。一切正常,但标题不固定,所以我用 addFixedBar 替换标题的 addchild。现在标题是固定的,但它覆盖了 RoundRectList。该列表的上端超出标题,我无法阅读。我如何告诉列表更小?
if (parentNodeId !== previousParentNodeId){
var newDiv = new dojox.mobile.ScrollableView({
id: divNodesId,
dojoType: "dojox.mobile.ScrollableView",
scrollDir: "v",
style: "background-color: #d0d0d0"
});
newDiv.placeAt('mobileView','first');
//look if there is a previous parent, only if there is one generate back button; needed for root div
if (previousParentNodeId == null){
var newHeading = new dojox.mobile.Heading({
id: h1NodesId,
dojoType: "dojox.mobile.Heading",
fixed: "top",
label: "Knotenübersicht"
});
}
else {//create heading with back button
var newHeading = new dojox.mobile.Heading({
id: h1NodesId,
dojoType: "dojox.mobile.Heading",
back: "zurück",
moveTo: previousParentNode,
fixed: "top",
label: divNodeLabel
});
}
//newHeading.placeAt(divNodesId,'first');
newDiv.addFixedBar(newHeading);
newHeading.startup();
ulNodesId = "ulNodes"+parentNodeId;
var newUl = new dojox.mobile.RoundRectList({
id: ulNodesId,
dojoType: "dojox.mobile.RoundRectList"
});
newUl.placeAt(divNodesId,'last');
}