angular-ui/ui-grid

Auto resize grid height doesn't work sometimes

Open

#6.259 geöffnet am 12. Juni 2017

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
help wanted

Repository-Metriken

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

Beschreibung

Precondition: 1. I need to provide a grid height according to screen height, so the grid height need to be calculated when initialize. 2. Because we use $translate to translate UI, the translate feature affects the UI controls position. That's to say I couldn't get the exact grid height before UI render finish. Because of the 2 preconditions, the calculation of grid height must be called in a backed service callback. But it will cause grid display issue, and it seems the auto resize not work well in such condition. image This issue will happen at the first time of refreshing page after rebuilding whole project or login our system. And this issue will disappear when refresh the page again.

Contributor Guide