-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[bug] Android screen (viewport) offset/margin doesn't work #3148
Copy link
Copy link
Closed
Description
- KOReader version: nightly git
- Device: android
Issue
This is a blocker for Pull Request #2938.
Can change Android viewport resolution (height & width) with:
local Geom = require("ui/geometry")
local android = require("device/android/device")
(...)
local viewport = Geom:new{x=50, y=100, w=900, h=1600}
android.screen:setViewport(viewport)
but chaning x & y doesn't affect screen/viewport position.
Issue confirmed by @Frenzie (#2938 (comment))
Steps to reproduce
Comparision :
local viewport = Geom:new{x=50, y=100, w=900, h=1600}
below:

with
local viewport = Geom:new{x=0, y=0, w=900, h=1600}
below:

Can anyone help?
Reactions are currently unavailable