Skip to content

Paginated mode: chapter change renders with wrong margins/text wrapping after zoom change until another zoom triggers reflow #1673

@rudirudirudirudi

Description

@rudirudirudirudi

Describe the bug
After chapter transitions, the layout is always initially wrong if the zoom level had previously been changed from the default.

A second zoom action forces a correct reflow/pagination.

To Reproduce
Steps to reproduce the behavior:

  1. Open a book in paginated mode
  2. Increase zoom level using Ctrl+
  3. Move to the next chapter
  4. The new chapter is rendered with incorrect margins / text wrapping
  5. Text may be clipped at the right edge
  6. Press Ctrl- and then Ctrl+ again
  7. Layout immediately becomes correct

Expected behavior
Chapter transitions should preserve correct layout and pagination even after zoom changes.

This looks like the initial layout/reflow after chapter load does not fully respect the current zoom state until another zoom event invalidates the layout.

Screenshots

Image

Version:

  • Foliate version: 3.3.0
  • OS/Distribution and version: Pop!_OS 22.04 LTS
  • Desktop environment: GNOME 42.9
  • Installation method: Flatpak

Additional context
pop os still uses X11, that may be the culprit here...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions