Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content padding is not used for initial rendering #326

Open
kkris opened this issue Jun 12, 2023 · 1 comment · May be fixed by #327
Open

Content padding is not used for initial rendering #326

kkris opened this issue Jun 12, 2023 · 1 comment · May be fixed by #327
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@kkris
Copy link

kkris commented Jun 12, 2023

When you set the contentPadding parameter, it is not considered when the map is initially rendered. This results in cameraPositionState.position being off-center. Subsequent updates will correctly center taking the content padding into account.

I created a simple reproducing example here: kkris@865bd3c

Here is a video of this bug: https://github.com/googlemaps/android-maps-compose/assets/232214/ed5b164f-d926-4ca7-afdb-ffb14f3fe4e1

@kkris kkris added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jun 12, 2023
@wangela
Copy link
Member

wangela commented Jun 12, 2023

If you would like to upvote the priority of this issue, please comment below or react with 👍 so we can see what is popular when we triage.

@kkris Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

kkris added a commit to kkris/android-maps-compose that referenced this issue Jun 12, 2023
@kkris kkris linked a pull request Jun 12, 2023 that will close this issue
@kikoso kikoso added priority: p3 Desirable enhancement or fix. May not be included in next release. and removed triage me I really want to be triaged. labels Jul 10, 2023
kkris added a commit to kkris/android-maps-compose that referenced this issue Aug 1, 2023
bubenheimer added a commit to bubenheimer/android-maps-compose that referenced this issue Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants