2015-02-11 144 views
0

我在我的ADF頁面中使用彈出窗口,其中一些文本不在彈出窗口中。我怎樣才能調整它?這裏是我的代碼:ADF彈出窗口調整大小

<af:popup childCreation="deferred" 
    autoCancel="disabled" id="p2" 
    binding="#{backingBeanScope.backing_Setup.p2}"> 
<af:dialog id="d2" 
      binding="#{backingBeanScope.backing_Setup.d2}" 
      title="Confirmação" 
      type="cancel"> 
    <f:facet name="buttonBar"> 
     <af:commandButton text="Gravar" 
          id="cb6" 
          binding="#{backingBeanScope.backing_Setup.cb6}" 
          action="#{backingBeanScope.backing_Setup.checkRadioButtonAndPerformSave}"/> 
    </f:facet> 
    <af:panelGridLayout id="pgl45" 
         binding="#{backingBeanScope.backing_Setup.pgl45}"> 
     <af:gridRow marginTop="5px" 
        height="auto" 
        id="gr20" 
        binding="#{backingBeanScope.backing_Setup.gr20}"> 
      <af:gridCell marginStart="5px" 
         width="5mm" 
         id="gc104" 
         binding="#{backingBeanScope.backing_Setup.gc104}"> 
       <af:selectOneRadio label="" 
            id="sor1" 
            binding="#{backingBeanScope.backing_Setup.sor1}" 
            autoSubmit="true"> 
        <af:selectItem label="Os níveis abaixo herdarem tudo o que alterou;" 
            value="radio1" 
            id="si55" 
            binding="#{backingBeanScope.backing_Setup.si55}"/> 
        <af:selectItem label="Os níveis abaixo herdarem tudo o que alterou menos as exceções que tenham já definidas, caso existam." 
            value="radio2" 
            id="si56" 
            binding="#{backingBeanScope.backing_Setup.si56}"/> 
       </af:selectOneRadio> 
      </af:gridCell> 
      <af:gridCell marginStart="5px" 
         marginEnd="5px" 
         width="50%" 
         id="gc115" 
         binding="#{backingBeanScope.backing_Setup.gc115}"> 
       <af:outputText id="ot1" 
           binding="#{backingBeanScope.backing_Setup.ot1}"/> 
      </af:gridCell> 
     </af:gridRow> 
     <af:gridRow marginTop="5px" 
        marginBottom="5px" 
        height="auto" 
        id="gr23" 
        binding="#{backingBeanScope.backing_Setup.gr23}"> 
      <af:gridCell marginStart="5px" 
         width="50%" 
         id="gc116" 
         binding="#{backingBeanScope.backing_Setup.gc116}"/> 
      <af:gridCell marginStart="5px" 
         marginEnd="5px" 
         width="50%" 
         id="gc117" 
         binding="#{backingBeanScope.backing_Setup.gc117}"> 
       <af:outputText id="ot2" 
           binding="#{backingBeanScope.backing_Setup.ot2}"/> 
      </af:gridCell> 
     </af:gridRow> 
    </af:panelGridLayout> 
</af:dialog> 

而這裏的結果:

enter image description here

回答

1

您可以嘗試設置明確的尺寸af:dialog控制或儘量包裹,甚至有取代目前panelGridLayout一套panelGroupLayout
事實上,如果我的想法正確無誤,您可以使用簡單的panelFormLayout來獲得所需的結果。

0

按我的知識,你可以用不同的方式 1解決這一>嘗試與面板窗體佈局周圍的面板的網格佈局 2>,而不是給你的標籤,你選擇一個電臺則可以使用單獨的輸入文本部件顯示標籤,你可以包裝它。 3>您可以明確設置對話框的尺寸

0

使用panelGrouplayout而不是面板網格,也可以使用面板組中的樣式類AFStretchWidth在彈出窗口內拉伸。 另一個組件面板窗口將更有用,它的大小可以在運行時間進行調整。