如何在 ADF 的面板拉伸布局中拉伸内联框架大小?

问题描述 投票:0回答:5

我有包含命令按钮和内联框架的 .jsff 页面。我想做的是,我想让命令按钮在同一个地方保持静止,滚动页面时只有内联框架可以移动。

目前我所做的是设置一些面板拉伸

layout(StyleClass:AFStetchWidth)
。我将命令按钮放在顶部。中心滚动面板组中的内联框架。

这是我的结构:

af:panelStetchLayout(样式类:AFStretchWidth)
>

面板拉伸布局方面

  bottom
  center
     af:panelGroupLayout-scroll
          af:inlineFrame     (StyleClass:AFStretchWidth)
  end
  start
  top
    af:panelGroupLayout-horizontal
         af:commandButton-back

当我运行这个页面时:命令按钮在顶部保持静止。这是正确的,但是内联框架的尺寸很小。有没有办法让内联框架可以拉伸?

frame inline oracle-adf
5个回答
0
投票

在 af:panelGroupLayout-scroll 上设置 (StyleClass:AFStretchWidth)。


0
投票

你试过把这个属性:

尺寸=“首选”

我用过它,它在面板拉伸布局中效果很好。


0
投票

只是我解决它如下:

    <af:panelGroupLayout id="pgl1" halign="center">
    <af:inlineFrame id="if1" source="/index.html" styleClass="AFStretchWidth" inlineStyle="height:100%;"/>
</af:panelGroupLayout>

0
投票

inlineStyle="高度:100%;" 默认 af:panelGroupLayout 就是这样。


0
投票

我遇到了同样的问题。在这里,我已经解决了它如下:

我已将面板拆分器用于内联框架。

     <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.

有了这个,它对我有用。

© www.soinside.com 2019 - 2024. All rights reserved.