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

Refactor of aui-calendar-datepicker to aui-datepicker

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.2
    • Component/s: Calendar (deprecated)
    • Labels:
      None

      Description

      I'm refactoring the aui-calendar-datepicker out of the Calendar rollup into being it's own widget.

      The reasons prompting this are:
      1. Slow performance in IE
      Currently in IE6 and IE7, the render cycle causes an entire repaint, often of the entire page
      2. Confusing architecture
      The widget is the datepicker, but the select boxes and button behave as their own widget. In reality, this should be a separate widget that uses the Calendar widget

      The main changes I've made here are around properly handling of the srcNode. The srcNode should not be used as the contentBox, and the reshifting around of elements during the render cycle causes large delays and repaints, especially in IE 6 and 7.
      Also the calendar is configured via the "calendar" attribute, and the created calendar widget is accessed via the ".calendar" property. All of the events of the calendar widget bubble up to the datepicker select, so we can listen for events like "calendar:eventName".

      Also, some handling of syncing values using BIND_UI_ATTRS to bind to the calendar events, and some general cleanup have been done.

        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, 18 weeks, 4 days ago

                Packages

                Version Package
                1.0.2