Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-113

Single box widgets should still refer to their content box

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1
    • Component/s: Component
    • Labels:
      None

      Description

      Widgets that set their CONTENT_TEMPLATE to null, such as FormValidator or ButtonItem should still refer to content box via get('contentBox') if content is being set inside of that box.
      The reason is because if a component extends from this widget and decides to not have a single box infrastructure, the parent widget will be appending it's nodes to the boundingBox instead of the contentBox which is wrong.
      The widget factory however correctly maps both contentBox and boundingBox to the same object when it's a single box widget, so unless we intend to use boundingBox, we should use contentBox.

        Attachments

          Activity

            People

            Assignee:
            nathan.cavanaugh Nate Cavanaugh
            Reporter:
            nathan.cavanaugh Nate Cavanaugh
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              11 years, 14 weeks ago

                Packages

                Version Package
                1.0.1