richfacesjboss-4.2.xrichfaces-modal

Change rich:modalpanel width/height using JS?


It it possible ? If so, does anyone have any example?

Thanks in advance.


Solution

  • I don't think there is js API provided by richfaces for this. If you view page source you'll notice many nested div-s the modal panel consists of, and they have set size in pixels (doesn't matter the modal has autosized=true or no). May be you can adjust size of those divs, but, of course, its a bad way. (I'm using richfaces 3.3.3)