Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-9088

Popup panel rendered wrong when maxHeight or maxWidht is null

    Details

    • Steps to Reproduce:
      Hide

      Set maxHeight or maxWidth to expression evaluating to null, e.g. maxHeight="#

      {null}"

      <h:commandButton value="Call the popup">
      <rich:componentControl target="popupPanel" operation="show" />
      </h:commandButton>

      <rich:popupPanel id="popupPanel" header="header" height="300" left="auto" moveable="true" maxHeight="#{null}

      " resizeable="true" top="auto" width="300">
      <f:facet name="controls">
      <h:outputLink value="#" onclick="#

      {rich:component('popupPanel')}

      .hide(); return false;">X</h:outputLink>
      </f:facet>

      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum bibendum magna non</p>
      </rich:popupPanel>

      Show
      Set maxHeight or maxWidth to expression evaluating to null, e.g. maxHeight="# {null}" <h:commandButton value="Call the popup"> <rich:componentControl target="popupPanel" operation="show" /> </h:commandButton> <rich:popupPanel id="popupPanel" header="header" height="300" left="auto" moveable="true" maxHeight="#{null} " resizeable="true" top="auto" width="300"> <f:facet name="controls"> <h:outputLink value="#" onclick="# {rich:component('popupPanel')} .hide(); return false;">X</h:outputLink> </f:facet> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum bibendum magna non</p> </rich:popupPanel>

      Description

      When maxHeight or maxWidth evaluates to null, panel is not rendered correctly (see attached screenshots).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  amarkhel Andrey Markhel
                  Reporter:
                  ppitonak Pavol Pitoňák
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: