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

Ensure controls respect padding #8670

Closed
wants to merge 3 commits into from

Conversation

arindam1993
Copy link
Contributor

@arindam1993 arindam1993 commented Aug 21, 2019

This is follow-up to #8638, and updates the styling of Map#_controlPositions DOM elements to respect the current state of padding.

I'm not completely sure if this should be default behavior, or a option that defaults to true.

Demo:
2020-02-14 18 55 14

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page
  • tagged @mapbox/studio and/or @mapbox/maps-design if this PR includes style spec changes
  • tagged @mapbox/gl-native if this PR includes shader changes or needs a native port

@arindam1993 arindam1993 self-assigned this Aug 21, 2019
@arindam1993
Copy link
Contributor Author

Closing this to declutter our queue. I haven't had the time to work on it recently, will reopen once I have more progress.

@arindam1993 arindam1993 closed this Nov 5, 2019
@arindam1993 arindam1993 reopened this Feb 14, 2020
@arindam1993 arindam1993 marked this pull request as ready for review February 15, 2020 03:11
@arindam1993 arindam1993 force-pushed the asymmetric-viewport-controls branch 2 times, most recently from 6336a49 to 29a7ca3 Compare February 18, 2020 03:00
@ryanhamley ryanhamley modified the milestone: release-c Mar 5, 2020
@arindam1993
Copy link
Contributor Author

After having worked on the example in https://github.com/mapbox/mapbox-gl-js-docs/pull/248, I feel that this feature needs a lot more fine-grained control than what this PR offers. Also it would be more performant to achieve this via css transitions on the control containers, which would be easier for developers to implement based on the template in the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants