Skip to content

Layout breaks when navigating to a new section at non-100% zoom #1671

@ahmetdem

Description

@ahmetdem

Describe the bug
When reading an EPUB with zoom set to anything other than 100%, navigating to a different section causes the layout to break, text columns appear misaligned. Zooming in or out by any amount immediately fixes the rendering.

To Reproduce

  1. Open any EPUB
  2. Set zoom to anything other than 100%
  3. Navigate to a different section
  4. Layout is broken
  5. Zoom in or out , layout is fixed again

Expected behavior
Layout should render correctly when navigating to a new section at any zoom level.

Screenshots
Image

Version:
System: GNOME 49 (Flatpak runtime)
Desktop: GNOME
Session: gnome (wayland)
Language: en_US.UTF-8

Versions:

  • Foliate 3.3.0
  • GJS 1.86.00
  • GTK 4.20.4
  • Adwaita 1.8.5
  • GLib 2.86.5
  • WebKitGTK 2.52.3

Additional context
I believe this wasn't the case some time ago, but i can't quite be sure about which version worked or if the recent version broke it.

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