Skip to content

Commit

Permalink
Update EntityDescription.ts
Browse files Browse the repository at this point in the history
628 Removes assumption that the infobox always has the bodyless class
  • Loading branch information
mfarmer-ara authored Oct 10, 2023
1 parent e09c037 commit befbd5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EntityDescription/EntityDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const EntityDescription: FC<EntityDescriptionProps> = ({
interval = window.setInterval(() => {
// wait for infobox to become visible.
const node = viewer.infoBox.container.querySelector(
".cesium-infoBox.cesium-infoBox-bodyless.cesium-infoBox-visible",
".cesium-infoBox.cesium-infoBox-visible",
);

if (!node) return;
Expand All @@ -78,7 +78,7 @@ const EntityDescription: FC<EntityDescriptionProps> = ({
// append the description content to infoBox.
parent.appendChild(c);

// remove cesium-infoBox-bodyless class
// remove cesium-infoBox-bodyless class if it exists on the infobox.
node.classList.remove("cesium-infoBox-bodyless");
frame.style.height = parent.getBoundingClientRect().height + "px";
}, 10);
Expand Down

0 comments on commit befbd5a

Please sign in to comment.