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/resizing of country page #3328

Merged
merged 5 commits into from
Mar 1, 2018
Merged

Fix/resizing of country page #3328

merged 5 commits into from
Mar 1, 2018

Conversation

edbrett
Copy link
Contributor

@edbrett edbrett commented Mar 1, 2018

Overview

We had some issues when resizing the country page on mobile devices, and also the sticky map not displaying on render. This PR updates the layout and CSS of the country's root component to fix these issues and make the page better as a whole. I have also removed the custom sticky implementation in exchange for react-stckynode from Yahoo.

BONUS: updated to fix the height of the map to the full screen to prevent hiding the legend, with the zoom controls sticky when scrolling with the map.

NOTE: there is a bug in recharts that if affect resizing from big to small. We have set the responsive container to use 99% width to handle this but sometimes the resizing is slow.

@edbrett edbrett requested a review from pjosh March 1, 2018 12:35
Copy link
Contributor

@j8seangel j8seangel left a comment

Choose a reason for hiding this comment

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

The sticky seems to work better than the custom version because we don't see this strange flash that sometimes appeared.

Except for this small detail
image
that you can fix using this css into svgs:
shape-rendering: crispedges; everything looks good!

@edbrett edbrett merged commit d19184f into develop Mar 1, 2018
@edbrett edbrett deleted the fix/resizing-of-country-page branch March 1, 2018 17:08
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