mirror of
https://github.com/koreader/koreader.git
synced 2026-11-27 06:43:01 +00:00
move crereader margin options into defaults.lua
This commit is contained in:
1 parent
1fb4dfab95
commit
1cbc6b9669
3 files changed
+17
-11
No files matched your search
@@ -573,10 +573,10 @@ function ReaderView:onSetViewMode(new_mode)
|
||||
end
|
||||
|
||||
function ReaderView:onSetPageMargins(margins)
|
||||
local left = margins[1]
|
||||
local top = margins[2]
|
||||
local right = margins[3]
|
||||
local bottom = margins[4]
|
||||
local left = Screen:scaleByDPI(margins[1])
|
||||
local top = Screen:scaleByDPI(margins[2])
|
||||
local right = Screen:scaleByDPI(margins[3])
|
||||
local bottom = Screen:scaleByDPI(margins[4])
|
||||
self.ui.document:setPageMargins(left, top, right, bottom)
|
||||
self.ui:handleEvent(Event:new("UpdatePos"))
|
||||
return true
|
||||
|
||||
Reference in new issue
Block a user