Bug 153058

Summary: Android Viewer: Allow zooming out to see full page in landscape orientation
Product: LibreOffice Reporter: Michael Weghorn <m.weghorn>
Component: Android ViewerAssignee: Michael Weghorn <m.weghorn>
Status: RESOLVED FIXED    
Severity: enhancement CC: m.weghorn
Priority: medium    
Version: 7.6.0.0 alpha0+   
Hardware: All   
OS: Android   
Whiteboard: target:7.6.0
Crash report or crash signature: Regression By:
Attachments: Screencast of current behavior
Screencast with pending Gerrit changes in place

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.