我正在使用JDeveloper 11.1.1.7在我的项目中开发我的项目我只需要垂直滚动条而不需要水平滚动条。
我的代码在下面给出
<af:panelGroupLayout id="pgls6" layout="scroll">
<af:tree id="menuTree"
value="#{pageFlowScope.model}"
var="menuvar" rowSelection="single"
initiallyExpanded="true" partialTriggers="::cb2"
fetchSize="25" autoHeightRows="-1"
contentDelivery="whenAvailable"
inlineStyle="height:100%;">
<f:facet name="nodeStamp">
<af:commandLink text="#{menuvar.name}" id="cl2"
immediate="true">
<af:dropTarget dropListener="#{DropMenu.execute}">
<af:dataFlavor flavorClass="java.lang.Object"/>
</af:dropTarget>
<af:clientAttribute name="menuBean"
value="#{menuvar.index}"/>
<af:attributeDragSource attribute="menuBean"/>
<af:resetActionListener/>
</af:commandLink>
</f:facet>
</af:tree>
</af:panelGroupLayout>
先谢谢
答案 0 :(得分:1)
将panelGroupLayout
控件布局样式更改为layout="scroll"
或layout="horizontal"
由于
答案 1 :(得分:0)
使用ADF布局总是很棘手,因为它取决于您的布局结构。我会尝试将styleClass
的{{1}}属性设置为af:tree
:
AFStretchWidth
我也会删除<af:tree id="menuTree"
value="#{pageFlowScope.model}"
var="menuvar" rowSelection="single"
initiallyExpanded="true" partialTriggers="::cb2"
fetchSize="25" autoHeightRows="-1"
contentDelivery="whenAvailable"
styleClass="AFStretchWidth">
。如果要设置高度,则应将正值设置为inlineStyle="height:100%;"
,如25。