angular-ui/ui-grid

Auto resize grid height doesn't work sometimes

Open

#6259 aperta il 12 giu 2017

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (2496 fork)batch import
help wanted

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor