Bug 153058 - Android Viewer: Allow zooming out to see full page in landscape orientation
Summary: Android Viewer: Allow zooming out to see full page in landscape orientation
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All Android
: medium enhancement
Assignee: Michael Weghorn
URL:
Whiteboard: target:7.6.0
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-17 07:31 UTC by Michael Weghorn
Modified: 2023-01-17 11:14 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screencast of current behavior (415.27 KB, video/x-matroska)
2023-01-17 07:31 UTC, Michael Weghorn
Details
Screencast with pending Gerrit changes in place (397.33 KB, video/x-matroska)
2023-01-17 07:54 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weghorn 2023-01-17 07:31:16 UTC
Created attachment 184704 [details]
Screencast of current behavior

[I received this request from a user by email, reporting it here for further processing.]

Android Viewer has a minimum zoom level so that zooming out further than making the page width fill the screen width doesn't work (results in auto-zooming back to that level). This makes it impossible to see a full portrait page when the device is used in landscape orientation, s. attached screencast.

Steps to reproduce:

1) switch Android device to landscape mode
2) open a Writer document in page format A4, portrait
3) zoom out to see the full page

Actual result: Auto-zoom back in happens so that it's impossible to see the whole page at once.

Desired result: No auto-zoom or auto-zoom only to the point where the whole page is still visible.

Version: 7.6.0.0.alpha0+
Build ID: 9c87fe9eff2c
Comment 1 Michael Weghorn 2023-01-17 07:54:04 UTC
Created attachment 184705 [details]
Screencast with pending Gerrit changes in place

Pending Gerrit changes:

https://gerrit.libreoffice.org/c/core/+/145657
https://gerrit.libreoffice.org/c/core/+/145658

Attached is a screencast of the behaviour with the changes in place.
For double-tap, adapting zoom level to the page width is still used, rather than the new minimum zoom level, because it IMHO fits better for using the app on smaller devices, s. commit message for details.
Comment 2 Commit Notification 2023-01-17 11:09:17 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/377a8c8ed7dd997d1ac96918b69f805880d208af

tdf#153058 android: Use "fit page" for min zoom level

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.