-
I had tried to run dockview (or even |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
To be honest, I've never tried it - but I will try it and get back to you. If it doesn't work I would assume it's something trival the library is missing to allow it to work. |
Beta Was this translation helpful? Give feedback.
-
I've created a quick CodeSandbox here rendering a My very quick example seems to render dimensions ok, are you able to adjust this sandbox to make the dimensions not work as you see? |
Beta Was this translation helpful? Give feedback.
-
@mathuo this looks really promising. I have been trying to do with GridViewComponent without React. Couldn't get it working inside shadowDom. Is there something special that |
Beta Was this translation helpful? Give feedback.
-
@husayt I have a feeling this is the offending line of code... explicitly checks for "within document.body" which would fail for shadow DOM elements. My example works I assume because its first size by chance is non-zero whereas yours is probably zero (just depends in what order you attach things to the DOM etc I guess - either way it's a bug). Raised this PR to fix the issue and have deployed an experimental build When I use this new version with your example I can see some components do not grow in height as required (outside of the dockview library scope). There are obviously many ways to get the height to work but I just used some Let me know your thoughts. |
Beta Was this translation helpful? Give feedback.
-
This works as of 1.9.0. Thank you @mathuo |
Beta Was this translation helpful? Give feedback.
@husayt I have a feeling this is the offending line of code... explicitly checks for "within document.body" which would fail for shadow DOM elements.
My example works I assume because its first size by chance is non-zero whereas yours is probably zero (just depends in what order you attach things to the DOM etc I guess - either way it's a bug).
Raised this PR to fix the issue and have deployed an experimental build
0.0.0-experimental-fd25fdd-20240109
on npm which can be installed throughnpm install [email protected]
.When I use this new version with your example I can see some components do not grow in height as required (outside of the dockview library sc…