Skip to content

Conversation

octocorvus
Copy link
Contributor

No description provided.

@octocorvus octocorvus force-pushed the edge-to-edge-3 branch 2 times, most recently from 7cd0755 to 0c4cb49 Compare September 4, 2025 19:28
@octocorvus octocorvus force-pushed the edge-to-edge-3 branch 2 times, most recently from 24338c1 to 6789285 Compare October 3, 2025 00:20
@octocorvus octocorvus marked this pull request as ready for review October 3, 2025 08:08
@octocorvus octocorvus force-pushed the edge-to-edge-3 branch 2 times, most recently from 8bdd5d0 to 5e88369 Compare October 6, 2025 05:10
@octocorvus octocorvus changed the title Edge to edge 3 bump PDF.js to 5.4.296; bump targetSdk to 36; edge-to-edge improvements; custom gradle task improvements Oct 6, 2025
The page element is a container for the canvas and text layer and helps
to keep the layers aligned. The following changes were also needed:
- Only center PDF pages horizontally. Vertical centering was often the
  cause of text layer misalignment and additional code was often needed
  to fix the alignment. Moreover, vertical centering doesn't make sense
  when there are multiple PDF pages within the same DOM. So, drop it
  completely.
- Drop old text layer alignment method.
The WebView now takes all screen space regardless of whether app toolbar
is hidden or not. So, we add padding in our javascript viewer to account
for system insets and app toolbar size.
Prevents jank which happens due to --scale-factor not being set to
correct value before canvas is displayed.
@octocorvus octocorvus force-pushed the edge-to-edge-3 branch 2 times, most recently from 05940bd to 4006e0c Compare October 6, 2025 05:22
@octocorvus octocorvus changed the title bump PDF.js to 5.4.296; bump targetSdk to 36; edge-to-edge improvements; custom gradle task improvements bump PDF.js to 5.4.296; bump targetSdk to 36; edge-to-edge improvements Oct 6, 2025
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