Closed earlyster closed 7 years ago
The flicker is due to setting the padding of the header to be equal to the scrollbar's width. Unfortunately, there is no way to measure the width of the browser's scrollbar during the server rendering. Thus, although we will stop outputting the NaN
, this flicker cannot be avoided.
Fixed in 1.5.0-dev.201710041221
I tried with latest dev build and appears to still be there
Maybe we can determine scrollBarWidths based on referrer object it won't be perfect but could help have best css for server side render to avoid a flicker in most use cases. https://codepen.io/sambible/post/browser-scrollbar-widths
@earlyster we couldn't reproduce this faulty behavior with latest version ( dev and official), could you send us something to test it on our site.
We're closing this issue, @earlyster if you have any new information please reopen.
I'm submitting a...
Current behavior
When I render grid in angular universal I receive NaN in the server side generated html. When the html is hydrated the css is corrected and there is a small flicker.
Expected behavior
Expected html to not contain NaN / invalid css output. No flicker when going from server side rendered html to hydrated html with js.
Minimal reproduction of the problem with instructions
What is the motivation or use case for changing the behavior?
No flickering of grid when Rendering initial first page of data on server in a virtualized grid. Attempting to render grid in under <400ms which can only be done with html pre rendered content.
Environment
Package versions:
Browser:
Not applicable for browsers happens with server
System: