angular-ui/ui-grid

Auto resize grid height doesn't work sometimes

Open

#6,259 建立於 2017年6月12日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (5,395 star) (2,496 fork)batch import
help wanted

描述

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.

貢獻者指南