message: fix: EntityDescription is not displayed on the first time entity selection
diff: @@ -58,12 +58,6 @@ const EntityDescription: FC<EntityDescriptionProps> = ({
  let timeout: number | undefined;
  if (selected) {
  - parent.appendChild(c);
  -
  - // remove cesium-infoBox-bodyless class
  - viewer.infoBox.container
  - .querySelector(".cesium-infoBox.cesium-infoBox-bodyless")
  - ?.classList.remove("cesium-infoBox-bodyless");
  // auto resize
  if (resizeInfoBox) {
  @@ -71,6 +65,12 @@ const EntityDescription: FC<EntityDescriptionProps> = ({
  frame.style.height = height + "px";
  timeout = window.setTimeout(() => {
  + // append the description content to infoBox.
  + parent.appendChild(c);
  + // remove cesium-infoBox-bodyless class
  + viewer.infoBox.container
  + .querySelector(".cesium-infoBox.cesium-infoBox-bodyless")
  + ?.classList.remove("cesium-infoBox-bodyless");
  frame.style.height = parent.getBoundingClientRect().height + "px";
  }, 10);
  }
  