0 Replies Latest reply on Nov 12, 2008 1:46 PM by Jason Long

    scrolling div with rich:hotKey when rich:modalPanel is open

    Jason Long Master

      My users kept complaining about not being able to scroll the page after a modal was open to see other information in order to complete the form.

      I used rich:hotKey to facilitate this.

      <rich:hotKey key="alt+ctrl+up"
       handler="#{rich:element('outerCenterPanelContent')}.scrollTop-=100"/>
       <rich:hotKey key="alt+ctrl+down"
       handler="#{rich:element('outerCenterPanelContent')}.scrollTop+=100"/>
      


      I am sure this can be used to scroll the browser if there is no div to scroll.

      Here is a link to a Jira issue for a non modal panel
      https://jira.jboss.org/jira/browse/RF-994

      What is the reason for not having a simple property flag to make a panel modal or not? Or, is there some other option or workaround?

      I would rather not rework my application that has many modalPanels.

      I would even consider submitting a patch if someone would tell me why this might be difficult or conflict with Richfaces in general.