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

Fix overlay styles #821

Closed
wants to merge 4 commits into from
Closed

Fix overlay styles #821

wants to merge 4 commits into from

Conversation

xintongxia
Copy link

for #768

@coveralls
Copy link

coveralls commented Jun 7, 2019

Coverage Status

Coverage decreased (-11.6%) to 40.519% when pulling 2a561ae on xx/overlay-style into 6678026 on master.

@xintongxia xintongxia changed the title Fix overlay styles [WIP] Fix overlay styles Jun 8, 2019
@@ -275,7 +275,10 @@ export default class StaticMap extends PureComponent<StaticMapProps, State> {
createElement('div', {
key: 'map-overlays',
className: 'overlays',
style: CONTAINER_STYLE,
style: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make another constant

@xintongxia xintongxia changed the title [WIP] Fix overlay styles Fix overlay styles Jun 11, 2019
@@ -284,7 +289,7 @@ export default class StaticMap extends PureComponent<StaticMapProps, State> {

render() {
const {className, width, height, style, visibilityConstraints} = this.props;
const mapContainerStyle = Object.assign({position: 'relative'}, style, {
const mapContainerStyle = Object.assign({position: 'relative', overflow: 'inherit'}, style, {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not going to work if StaticMap is used standalone.

@xintongxia
Copy link
Author

This is hacky and cannot resolve the issue. This PR will make both markers and popups overflow on a basemap

@xintongxia xintongxia closed this Jul 3, 2019
@Pessimistress Pessimistress deleted the xx/overlay-style branch December 19, 2019 04:04
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.

3 participants