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

Allow to disable display cutouts padding #101

Merged
merged 3 commits into from Apr 14, 2022

Conversation

szymn
Copy link
Contributor

@szymn szymn commented Apr 6, 2022

We have a situation where:

  1. we embed the navigator (not full screen)
  2. our host activity already handles insets and we want it to keep using LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES

In this scenario we want to avoid additional padding applied for insets within the reader.

@404-html
Copy link

@mickael-menu @qnga @stevenzeck is there any chance for this being merged anytime soon 🙏

@mickael-menu
Copy link
Member

I plan to test the PR this week, it looks good from what I can tell.

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

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

@szymn Thank you! I took this opportunity for a small refactoring, the R2BasicWebView should not have a direct reference to the navigator.

@mickael-menu mickael-menu merged commit 75b5f80 into readium:develop Apr 14, 2022
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.

None yet

3 participants