2 Replies Latest reply on Jun 24, 2009 9:54 AM by radu123

    Width of tabPanel problem

    radu123

      Hi !

      I use a tabPanel and i could not control its width, it is expanding outside of my page , it has many tabs headers with text.
      I tryed to access its width to set it to a fix dimension like:

      <rich:tabPanel switchType="ajax" width="100px">


      but it disconsider this, can be text from tabs a problem ?

      Also i tryed to include the tabPanel inside of a panelGrid with a fixed width but also the result was negative and my tabPanel goes outside of the page.

      <h:panelGrid width="100px" columns="1">
       <rich:tabPanel switchType="ajax" width="100px">


      If you have an ideea please help me.

      Thanks,
      Radu

        • 1. Re: Width of tabPanel problem
          ilya_shaikovsky

          unfortunatelly current tabPanel table based markup works like you describing.

          and about workaround. use h:panelGroup with block layout (produces div element) instead of grid(which produces table also) with layout block and fixed width.

          • 2. Re: Width of tabPanel problem
            radu123

            Thanks very much for posting, i will try it.
            From your post i understand that there could be a way to solve this issue using css or another parent controls for tablePanel... I am right ?

            Best regards,
            Radu