Results 1 to 2 of 2

Thread: List with grouped Headers and pinHeaders set to false pins Header after Scrollling

    Due to the impact related to this issue, we have to defer this issue to the next major or minor release.
  1. #1
    Sencha User SunboX's Avatar
    Join Date
    Mar 2010
    Posts
    238
    Vote Rating
    28
      0  

    Default List with grouped Headers and pinHeaders set to false pins Header after Scrollling

    REQUIRED INFORMATION


    Ext version tested:
    • Sencha Touch 2.0.1.1
    Browser versions tested against:
    • Chrome
    • iOS 5 on iPhone 3GS
    DOCTYPE tested against:
    • <!DOCTYPE html>
    Description:
    • A List with config: { grouped: true, pinHeaders: false } will pin Headers again after you have scrolled the List. See possible fix below.
    Steps to reproduce the problem:
    • Create a List with config: { grouped: true, pinHeaders: false }
    • Scroll the List on heavily CPU load (List with Images, 70 items, CSS3, aso.)
    • After scrolling has finished (and maybe "List.refresh()" got called ...) the Header will be pinned again
    The result that was expected:
    • no pinned Header
    The result that occurs instead:
    • pinned Header
    Test Case:

    Code:
        No test case, bug BugFix below ...


    HELPFUL INFORMATION



    Debugging already done:
    • Ext.dataview.List (List.js) on Line 473:

      Change from:
      Code:
      if (!this.header || !this.header.renderElement.dom) {
          this.createHeader();
      }
      To:
      Code:
      if (this.getPinHeaders() && !this.header) {
          this.createHeader();
      }
      You also have to change:
      Code:
      translateHeaderTransform: function(offset) {
          this.header.renderElement.dom.style.webkitTransform = (offset === null) ? null : 'translate3d(0px, -' + offset + 'px, 0px)';
      },
      translateHeaderCssPosition: function(offset) {
           this.header.renderElement.dom.style.top = (offset === null) ? null : '-' + Math.round(offset) + 'px';
      },
      To:
      Code:
      translateHeaderTransform: function(offset) {
          if(this.header) this.header.renderElement.dom.style.webkitTransform = (offset === null) ? null : 'translate3d(0px, -' + offset + 'px, 0px)';
      },
      translateHeaderCssPosition: function(offset) {
          if(this.header) this.header.renderElement.dom.style.top = (offset === null) ? null : '-' + Math.round(offset) + 'px';
      },

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1390
      0  

    Default

    2.1.0 b2 will be having a new list so I am going to defer this until that release comes out to see if the new list fixes this issue.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •