Skip to content

Dockview inside shadowdom #424

Closed Answered by mathuo
husayt asked this question in Q&A
Jan 9, 2024 · 5 comments · 3 replies
Discussion options

You must be logged in to vote

@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 through npm 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…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@husayt
Comment options

Comment options

You must be logged in to vote
2 replies
@husayt
Comment options

@husayt
Comment options

Answer selected by husayt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants