code: function fixElement(i, _pos, flag) {
          var pos = _pos
          var ori = flag == 1 ? 'pos' : 'oppos'
  
          if (viewPortSize < (params.minView || 0)) { // No headers fixing when no enought space for viewport
              pos = undefined
          }
  
          // Removing all fixing stuff - we can do this because fixElement triggers only when fixState really changed
          css(elements[i], this.origin.pos, '')
          css(elements[i], this.origin.oppos, '')
          rm(elements[i], params.outside)
  
          // Fixing if needed
          if (pos !== undefined) {
              pos += 'px'
              css(elements[i], this.origin[ori], pos)
              add(elements[i], params.outside)
          }
      }
docs: i - number of fixing element, pos - fix-position in px, flag - 1: top, 2: bottom Invocation only in case when fix-state changed