code: function(newWidth, newHeight) {
            var requiresRefresh = self.dataLength && newWidth && newHeight &&
              (newWidth !== self.width || newHeight !== self.height);
  
            self.width = newWidth;
            self.height = newHeight;
  
            return !!requiresRefresh;
          }
docs: A resize triggers a refresh only if we have data, the scrollView has size, and the size has changed.