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

        Migration created issue -
        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.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #31561 Wed Oct 17 17:33:08 MDT 2012 judy.guglielmin MOBI-379
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/splitpane/SplitPaneRenderer.java
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/splitpane/SplitPane.java
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/tests/mobitest/src/main/webapp/layout/splitPane.xhtml
        Commit graph MODIFY /icemobile/trunk/icemobile/resources/themes/base/0_split-pane.css
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/splitpane/SplitPaneMeta.java
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.splitpane/splitpane.js
        Hide
        Judy Guglielmin added a comment - - edited

        rev 31561

        Show
        Judy Guglielmin added a comment - - edited rev 31561
        Migration made changes -
        Field Original Value New Value
        Reporter Migration [ remote ] User Philip.breau [ philip.breau ]
        Migration made changes -
        Assignee Steve Maryka [ steve.maryka ] Judy Guglielmin [ judy.guglielmin ]
        Migration made changes -
        Fix Version/s 1.2 Beta [ 10344 ]
        Migration made changes -
        Attachment pic.png [ 14894 ]
        Migration made changes -
        Summary splitPane js sometimes calculates incorrect widths splitPane js sometimes fails to set pane widths (was: splitPane js sometimes calculates incorrect widths)
        Migration made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Philip Breau made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Philip Breau made changes -
        Issue Type Improvement [ 4 ] Bug [ 1 ]
        Philip Breau made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: