-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Rendering odd whitespace at end of page #863
Comments
@andrewazores I also see this when using PF topology extension. My issue was with the |
Yes, removing |
I guess we can remove that component for now (might lose some functionality for keyboard users and accessibility support) and keep the react-table version bump? |
Needs more investigation, I think. If the |
Yehh sure! That make sense! Just that we need that a react-table version that allows |
patternfly/patternfly-react#8521. seems to be pulling in |
I think this is the issue: This line specifies that But when rendering, notice how the |
Adding this line to .pf-c-skip-to-content {
position: absolute !important;
} I suspect exported @patternfly/react-core |
Awesome investigative work. Next thing to check is if creating a brand new application, starting from |
I tried creating a complete new application with same deps as cryostat-web: https://github.com/tthvo/sample-pf-react-app but could not reproduce the issue. Same for PF example with SkipToContent. But I found out that the root problem seems to originates from code-splitting, which also split |
Ouch. Well, at least we don't need to bother the PF team. But this does mean we could run into similar problems with css ordering due to splitting in the future. In this case the fix is small and seems low risk, but I imagine it could get a lot hairier in the future with other bugs in the same class. So you're saying removing the splitting or css lazyload from the webpack config also resolves this particular issue? This seems to mean that what we're doing at the moment is trading correctness for performance. Maybe we need to back that out and be a little more conservative and what gets split and lazy loaded. |
Probably a problem with css splitting. Maybe we can back out css splitting and just bundle all css in a single chunk? |
Would it be one giant css file that combines every css from the application and all deps? Or would it be "vendored" css files, roughly one from the application and one from each dep? |
hmm is this what happens now during build? I am bit unsure what the css orders are supposed to be in PF package so bundling all together cant seem to make sense... EDIT: Reading a bit more into PF origins of the |
Actually, I just found out something even more interesting now that I look closer. Behaviour only happens if we visit route with table. That just means originally the order is correct. I am now suspecting a duplicate css bundle with incorrect order that comes with a lazy bundle... Been seeing this warning while building with webpack that might explain... Removing split chunks get rid of these warning.
|
I dont know if we want to granularly fix these issues or find a way to control these css chunks. Maybe we need to completely back out lazy load route modules? https://stackoverflow.com/questions/74237008/route-based-code-splitting-causes-css-duplicate |
Nice, this is becoming a pretty clear picture of what's actually happening. Let's save backing out the lazy loaded route modules for a last resort fix. It would be nice to keep that since it means application first load is more responsive and browser caching should be more effective. Maybe there are other strategies we can use to try to ensure that the css files have the right load order or right priority. https://stackoverflow.com/questions/60632062/webpack-chunk-styles-and-react-lazy |
@tthvo when you have some cycles, could you prepare a PR backing out the chunk splitting change? Need to verify that it fixes this whitespace bug and doesn't add any other new bugs. This whitespace bug is pretty minor if it's the only manifestation of the css load order problem right now so I don't think this is critical. |
Sure just opened it here: #927 |
Notice the whitish band of space at the bottom of the image. I notice this when using my workstation with a 1920x1200 display.
It seems to be caused by #858 . If I check out a commit before that, or locally revert that patch, then the same page looks like this (normal):
The text was updated successfully, but these errors were encountered: