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

Reset Zoom sets zoom to 66%(?) instead of 100% #576

Open
Dingus357 opened this issue Feb 19, 2023 · 1 comment
Open

Reset Zoom sets zoom to 66%(?) instead of 100% #576

Dingus357 opened this issue Feb 19, 2023 · 1 comment

Comments

@Dingus357
Copy link

Expected behaviour

Reset Zoom sets zoom to 100%. (The tooltip for the Reset Zoom button on the toolbar says 'Reset zoom to 100%'.)

Actual behaviour

Reset Zoom does two unexpected things:

  • A new zoom level somewhere between 50% and 70% (66%?) is apparently created and incorrectly shown to be 70%. This new zoom level isn't selectable from the dropdown menu in the toolbar but can be cycled through using Zoom In/Zoom Out.
  • The document zoom is set to the newly created level.

Steps to reproduce the behaviour

Failure to reset zoom to 100%:

  1. Open a PDF file and select any zoom level.
  2. Do any one of the following:
    • Press Ctrl+0,
    • Select Reset Zoom from the View menu,
    • Click the Reset Zoom button on the toolbar.
  3. Rather than being set to 100%, the zoom is set to a level claimed to be 70% (but as we will see below, it is actually less than 70%).

Unexpected creation of new zoom level:

  1. Open a PDF file and select 70% zoom from the dropdown in the toolbar.
  2. Do any one of the following:
    • Press Ctrl+0,
    • Select Reset Zoom from the View menu,
    • Click the Reset Zoom button on the toolbar.
  3. Observe that the document shrinks slightly, but the zoom dropdown still displays 70%.
  4. Zoom in once (press Ctrl++ or select Zoom In from View menu or toolbar). The document enlarges but the zoom is still shown to be 70%.
  5. Zoom out once (Ctrl+- or select Zoom Out). The document shrinks but the zoom is still shown to be 70%.

These unexpected behaviours occur for all PDF files I've tested.

MATE general version

1.26.0

Package version

atril 1.26.0-1ubuntu1 amd64

Linux Distribution

Ubuntu MATE 22.04.2 LTS (Jammy Jellyfish) 64-bit
Kernel Linux 5.15.0-60-generic x86_64

Link to bugreport of your Distribution (requirement)

@lukefromdc
Copy link
Member

This is likely either related to or a duplicate of
#575

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

No branches or pull requests

2 participants