ICEfaces
  1. ICEfaces
  2. ICE-8516

ice:panelPopup - autoCentre does not recentre on resize of popup contents

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P04
    • Fix Version/s: EE-1.8.2.GA_P05
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P3
    • Workaround Exists:
      Yes
    • Workaround Description:
      Use a set height and width for the popup, this allows the popup to remain centred.

      Description

      When using the ice:panelPopup with autoCentre=true the popup does not get centred when the popups contents get changed.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that shows this behavior.

        Steps:

        • Load welcomeICEfaces.iface
        • Click on the open button to show popup.
        • Click on the Change button to change the contents of the popup. The popup size is changed but does not get re-centred on the page.
        Show
        Arran Mccullough added a comment - Attached test case that shows this behavior. Steps: Load welcomeICEfaces.iface Click on the open button to show popup. Click on the Change button to change the contents of the popup. The popup size is changed but does not get re-centred on the page.
        Hide
        yip.ng added a comment - - edited

        The content is rendered by a child facet. There is no way the parent popup is going to know what's being rendered in the child facet. And the child facet doesn't know about its parent either. Since the only change is in the content, DOM diff. just totally removes the rendering of the popup.
        The only way is for the child facet to force some arificial changes in the popup rendering. But how?

        Show
        yip.ng added a comment - - edited The content is rendered by a child facet. There is no way the parent popup is going to know what's being rendered in the child facet. And the child facet doesn't know about its parent either. Since the only change is in the content, DOM diff. just totally removes the rendering of the popup. The only way is for the child facet to force some arificial changes in the popup rendering. But how?

          People

          • Assignee:
            yip.ng
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: