2 Replies Latest reply on May 30, 2012 12:06 PM by u j

    popup size dependent on browser window size?

    u j Novice

      I have a big rich:popupPanel. On small browser windows or small devices, with option autosize=true it is bigger than the browser window,

      which is ugly.


      How can I make it smaller on small browser windows, to fit within the window, but maintain the ideal size if there is enough space?


      Something like <rich:popupPanel width="#{browserwindow.width > 400 ? 380 : browserwindow.width-20}">

      Is there such a variable?


      Note that it is enough to use the browser window size in the moment of the pop up action. It is not necessary to resize the popup automatically when

      the user resizes manually the browser window.