1 Reply Latest reply on Jun 20, 2008 7:26 AM by amontobin

    Scrollable Main Window and ModalPanel

    amontobin Newbie

      Hi Richface users,

      I've got a long main page with a link at the bottom which displays a modal panel. When i click on the link, the modal panl is displayed but the main window scrollbar is reset to (0,0). When i hide the modal panel, i still stays on position (0.0).

      How do i do to return to the old coordinates of the main window ?

      Thanks,

      Sebastien

        • 1. Re: Scrollable Main Window and ModalPanel
          amontobin Newbie

          Just found the solution :

          use javascript:Richfaces.showModalPanel() instead of component control.

          Maybe you can do also this :

          javascript:Richfaces.showModalPanel(id, { scrollXX : window.scrollX, scrollYY : window.scrollYY})

          and this in modal panel href :

          javascript:scroll(event.parameters.scrollXX,event.parameters.scrollYY)