Skip to content

Credit popup vertical re-centering #12945

@lukemckinstry

Description

@lukemckinstry

What happened?

Credit display popup should vertically re-center when content changes. Currently popup size is only centered the first time it is opened or when user changes viewport size. Follow up from #12913 (comment)

Reproduction steps

  1. Load sandcastle with imagery layer using per-tile/viewport dynamic attribution, eg. sandcastle loads Google Maps Satellite which has per-tile/viewport attribution
  2. Click "Data attribution" link in the bottom left of the viewer, the credits list in the attribution should be short and the popup should be vertically centered
  3. Close the popup, zoom in (height around 5000 meters will definitely reproduce it), check the data attribution popup again, if the credit list content is longer, you will see the popup has not re-centered and the content runs off the screen

Sandcastle example

No response

Environment

Browser:
CesiumJS Version:
Operating System:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions