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

2881: Fix weird modal bug #3037

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

2881: Fix weird modal bug #3037

wants to merge 2 commits into from

Conversation

LeandraH
Copy link
Contributor

Short description

I couldn't really find anything about why but our Modal centers its content (correctly) on Android for rtl and ltr and on iOS for ltr. On iOS for rtl, the content is aligned to the right. This fixes it by using margin instead of padding. It makes no sense to me but I decided an hour of googling is enough for a very minor bug.

Proposed changes

  • Use margin instead of padding.

Side effects

  • None

Testing

Test on iOS, set the device language to a rtl language (e.g. Arabic), go to the map and open the overlay with the POI filters. It should be centered now.

Resolved issues

Fixes: #2881


Copy link
Member

@steffenkleinle steffenkleinle left a comment

Choose a reason for hiding this comment

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

Very weird.... tested on iOS and Android, fixes the bug as expected. Nice!

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.

POI filter overlay is off-center in Arabic in iOS
2 participants