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 PagerDotIndicator Container Taking Up Entire Width of View on iOS #165

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kas
Copy link

@kas kas commented May 28, 2019

This fixes an issue on iOS where the container holding the dots takes up the entire width to the left and right of the dots. Before this fix, the container would block any elements that are rendered to the left and right of the dots. After this fix, the container shrinks down to only occupy the space that the dots occupy.

Here's some images showing the issue using the React Native Inspector:

Before

image

After

image

@kas kas changed the title Fix PagerDotIndicator Container Taking Up Entire Width of Screen on iOS Fix PagerDotIndicator Container Taking Up Entire Width of View on iOS May 28, 2019
@kas
Copy link
Author

kas commented May 28, 2019

Realized we need to keep position: 'absolute' or it interrupts how far down other elements can render.

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.

1 participant