如何在ADF中的面板拉伸布局中拉伸嵌入式框架尺寸? [英] How to stretch inline frame size in panel stretch layout in ADF?
问题描述
我有一个.jsff页面,其中包含命令按钮和嵌入式框架.我想做的是,我想使命令按钮在同一位置保持静态,并且滚动页面时只能移动嵌入式框架.
I have .jsff page that contain command button and inline frame. What I want to do is, I want to make command button remain static at the same place and only inline frame can move when scroll the page.
当前我要做的是设置一些面板拉伸layout(StyleClass:AFStetchWidth)
.我将命令按钮放在顶部.滚动面板组中的嵌入式框架位于中心.
Currently what I do is I set some panel stretch layout(StyleClass:AFStetchWidth)
. I put the command button at the top. Inline frame in scroll panel group at the center.
这是我的结构:
af:panelStetchLayout(StyleClass:AFStretchWidth)
>
af:panelStetchLayout(StyleClass:AFStretchWidth)
>
面板拉伸布局方面
bottom
center
af:panelGroupLayout-scroll
af:inlineFrame (StyleClass:AFStretchWidth)
end
start
top
af:panelGroupLayout-horizontal
af:commandButton-back
当我运行此页面时:命令按钮在顶部保持静态.这是正确的,但是内联框架的大小很小.有没有办法使内联框架伸展?
When I run this page: command button remain static at the top. This is correct, but the size of the inline frame is small. Is there a way to make an inline frame to be stretch?
推荐答案
我遇到了同样的问题.在这里,我已经解决了以下问题:
I was getting the same issue. Here I have solved it as below:
我已经将面板分配器用于嵌入式框架.
I have used panel splitter for inline frame.
<af:panelSplitter styleClass="AFStretchWidth" inlineStyle="height:500px;" id="ps3" dimensionsFrom="parent"
positionedFromEnd="false">
<f:facet name="first">
<af:panelGroupLayout id="pgl11" >
<af:inlineFrame styleClass="AFStretchWidth" partialTriggers="cb3" source="#{pdfHandler.servletString}"
id="if1" visible="true" binding="#{pdfHandler.inLineFrame}" shortDesc=" "
inlineStyle="height:500px;"/>
</af:panelGroupLayout>
</f:facet>
如上所示,
I have added inlineStyle for height in both panelSplitter and in inlineFrame.
Added dimensionFrom for panelSplitter as 'parent'
Surround inlineFrame with panelGroupLayout.
有了它,它对我有用.
这篇关于如何在ADF中的面板拉伸布局中拉伸嵌入式框架尺寸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!