summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorXimeng Zu <uznomis@yahoo.com>2017-03-16 23:24:27 -0500
committerTomaž Vajngerl <quikee@gmail.com>2017-04-18 13:02:34 +0200
commited900113d091431f89ccc312b55a6955ca341b9e (patch)
treec7b006190a64ac7382f959a24877f6df0afe2ece /sc/source/ui
parentd52d230fc204b7b2b0d9b27445b496b0113a8dd5 (diff)
tdf#106368 android: restrict zoom to page width
Created an overloaded constructor for ZoomConstraints class that takes in minZoom and maxZoom. Added calculation of minZoom according to page width and screen width and assigned the minZoom to ZoomConstraints in LOKitThread class. Deleted minZoom checking in the onScale method in JavaPanZoomController class because the checking prevented zoom-in from functioning. (Update: I also removed the old constructor because it is not used any more.) Change-Id: I89e80761efc093b3738970d4482dd735532c0397 Reviewed-on: https://gerrit.libreoffice.org/35308 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc/source/ui')
0 files changed, 0 insertions, 0 deletions