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

popupPanel (modal and autosized) doesn't resize then content resizes (eg. after ajax request)

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 4.3.7
    • Fix Version/s: None
    • Component/s: base functionality
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      RF demo can be used (dataTable example: Data iteration / rich:dataTable / Editing). Add rich:messages component in "editGrid" just before </h:panelGrid>. Run example, clear fields in popupPanel, click "Store", rich:messages is shown, content resizes but popupPanel does not.

      Show
      RF demo can be used (dataTable example: Data iteration / rich:dataTable / Editing). Add rich:messages component in "editGrid" just before </h:panelGrid>. Run example, clear fields in popupPanel, click "Store", rich:messages is shown, content resizes but popupPanel does not.

      Description

      In 4.3.5 it was fine.
      In 4.3.7 popupPanel with autosized has now width and height set in style attribute for div id's "xxx_container" and "xxx_content_scroller" (width and height calculated for current content rendered during show). Therefore when any element in content changes its size, for example validation on "Store" button is done and message components are rendered (with some errors) then popupPanel stay still and doesn't resizes (scrollbars appears in div) because height in _content_scroller is set to fix value (good at the beginning).
      In 4.3.5 height and width in style for popupPanel divs wasn't set (in autosized mode) that's why when content was resized then whole popupPanel was resized automatically. It was nice, especially when using popupPanel as in dataTable editing example (data changes in single window with validation messages) or when popupPanel is used in a wizard mode (with some steps, each with little different size)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  dariusz.mrowka Dariusz M
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: