angular-ui/ui-grid

When explicit row height set, mouse wheel scroll doesnt work.

Open

#4.351 geöffnet am 10. Sept. 2015

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (2.496 Forks)batch import
good first issuegrid-core

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

putting an int value in rowHeight produces strange results, I've been using pixel value as rowHeight: '200px'. It looks like getCanvasHeight expects integer value there though so doesnt do anything to see the px value. This causes bad values coming from that function but doing this fixes it:

change:

self.visibleRowCache.forEach(function(row){
  self.$$canvasHeight += row.height;
});

to:

self.visibleRowCache.forEach(function(row){
  self.$$canvasHeight += parseInt(row.height.replace("px", ""));
});

Contributor Guide