1 Reply Latest reply on Jan 18, 2011 3:20 AM by Ilya Shaikovsky

    Rich Modal Panel Scrollbar?

    mahendra b Newbie

      Hi ,

       

      I am using rich faces version 3.3.3

       

       

      I am using a modal panel with fixed height and width.

       

      But when the content in my modal panel increases , i want to have both horizontal and vertical scrollbars

       

      What should i do to achieve this

       

      currently my modal panel looks like this ..

       

      <rich:modalpanel id = "modalpanel1" height = "450"  width="600">

      </rich:modalpanel>

       

      Thanks

      Mahi

        • 1. Rich Modal Panel Scrollbar?
          Ilya Shaikovsky Master

          unfortunatelly no way to add scrolls to body only using css as it place to td element. And if you will add overflow to upper div element - header will not be considered.

           

          But good news there is pretty simple workaround present. Wrap your panel content into outputPanel with layout=block(that will produce div around). And add overflow:auto or scrolls style to that panel.