ICEmobile
  1. ICEmobile
  2. MOBI-379

splitPane js sometimes fails to set pane widths (was: splitPane js sometimes calculates incorrect widths)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 Beta
    • Fix Version/s: 1.2 Beta
    • Component/s: Faces, Spring
    • Labels:
      None
    • Environment:
      n/a

      Description


      During the work on mediacast, we noticed that sometimes the splitPane would act up. After some dom updates, the right pane would sometimes shrink, leaving a space to the right of it. The left pane seemed unaffected. On inspection, the script had calculated the width of the right pane to 0. The issue seems intermittent and only happens infrequently, but moving the width setting from the script to rendering it straight on the div might be preferable.

        Activity

        Hide
        Judy Guglielmin added a comment - - edited

        This is not an autowidth calculation. If the columnDivider value is set, then the width css attribute is set (in px for the left and 100-columnWidth in % for the right column). If you don't set columnDivider, then nothing is done to the width css attribute. Have not seen anything in testing that would give this type of result. Would love a screen shot and some html markup of problem area....

        Show
        Judy Guglielmin added a comment - - edited This is not an autowidth calculation. If the columnDivider value is set, then the width css attribute is set (in px for the left and 100-columnWidth in % for the right column). If you don't set columnDivider, then nothing is done to the width css attribute. Have not seen anything in testing that would give this type of result. Would love a screen shot and some html markup of problem area....
        Hide
        Philip Breau added a comment - - edited

        The issue seems to happen sometimes on an ajax dom update that includes the splitPane. Debugging javascript shows that sometimes the element selector may bring back no results, in which case the widths will not be set.

        Show
        Philip Breau added a comment - - edited The issue seems to happen sometimes on an ajax dom update that includes the splitPane. Debugging javascript shows that sometimes the element selector may bring back no results, in which case the widths will not be set.
        Hide
        Judy Guglielmin added a comment - - edited

        Although we can work around this component by component, the true nature of this problem appears that we don't have an onDomReady event ourselves...the ace guys use jQuery onDomReady ability.
        Will do some working around to ensure the width is always set (even when the dom elements are not ready), but this could be a bigger problem with all components.

        Show
        Judy Guglielmin added a comment - - edited Although we can work around this component by component, the true nature of this problem appears that we don't have an onDomReady event ourselves...the ace guys use jQuery onDomReady ability. Will do some working around to ensure the width is always set (even when the dom elements are not ready), but this could be a bigger problem with all components.
        Hide
        Judy Guglielmin added a comment - - edited

        rev 31561

        Show
        Judy Guglielmin added a comment - - edited rev 31561

          People

          • Assignee:
            Judy Guglielmin
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: