1 Reply Latest reply on Jun 25, 2009 8:03 AM by Anton Belevich

    <rich:comboBox /> width attribute

    Tim Evers Master

      Hi guys.

      I've got a number of rich:comboBoxes on my forms and I have a requirement to "auto" size these comboBoxes so that the text fits into them all the time.

      At the moment I can't see anyway of doing this with a rich:comboBox out of the box. And I can't figure out a way of doing it with javascript either.

      Has anyone know a workaround to make rich:comboBoxes automatically calculate their width?

      Or is there a special javascript api method I can call to do this on that component. (I wish the javascript api for richfaces components was better documented :( )

      Anyways,
      Any help would be greatly appreciated.

      Cheers,
      Tim