You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
branch main, commit 6f8df87, tag cesium-viewer-in-lit-component-credits-styles-missing : the CreditsDisplay box lacks the corresponding styles, so it is displayed after the main view
branch main, as of commit 2cefa0d, tag add-credits-styling-workaround looks good, the CreditsDisplay box is overlaid on top of the main view
The text was updated successfully, but these errors were encountered:
This issue is resolved by upgrading to cesium v1.104.0, which contains my fix for the issue Cesium.Viewer instantiated inside my lit component: CreditDisplay is missing its styles #10907
The issue is visible on the branch
main
, commit6f8df87
, tagcesium-viewer-in-lit-component-credits-styles-missing
(the first screenshot below).@olange identified the problem source and provided a workaround in PR #11:
Problem lies in source CesiumJS › packages › engine › Source › Scene › CreditDisplay; it attaches the generated CSS to document.head— which won't pierce the ShadowDOM:
As a workaround, @olange copied the generated CSS styles from the
devtools Elements
and pasted them into our file cesium-lit.js:Details:
main
, commit6f8df87
, tagcesium-viewer-in-lit-component-credits-styles-missing
: the CreditsDisplay box lacks the corresponding styles, so it is displayed after the main viewmain
, as of commit2cefa0d
, tagadd-credits-styling-workaround
looks good, the CreditsDisplay box is overlaid on top of the main viewThe text was updated successfully, but these errors were encountered: