Skip to content

Comments

Ensure controls respect padding#8670

Closed
arindam1993 wants to merge 3 commits intomasterfrom
asymmetric-viewport-controls
Closed

Ensure controls respect padding#8670
arindam1993 wants to merge 3 commits intomasterfrom
asymmetric-viewport-controls

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 requested a review from ryanhamley August 21, 2019 20:28
@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 force-pushed the asymmetric-viewport-controls branch from 4b105fc to a9aad3c Compare February 15, 2020 03:01
@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