Reflowable documents: fix sync T/B margins (#13439)
This commit is contained in:
1 parent
47ff612417
commit
3ebdfffd01
2 files changed
+6
-2
No files matched your search
@@ -511,7 +511,11 @@ function ReaderTypeset:onSetPageTopAndBottomMargin(t_b_margins, when_applied_cal
|
||||
end
|
||||
|
||||
function ReaderTypeset:onSyncPageTopBottomMargins(toggle, when_applied_callback)
|
||||
self.sync_t_b_page_margins = not self.sync_t_b_page_margins
|
||||
if toggle == nil then
|
||||
self.sync_t_b_page_margins = not self.sync_t_b_page_margins
|
||||
else
|
||||
self.sync_t_b_page_margins = toggle
|
||||
end
|
||||
if self.sync_t_b_page_margins then
|
||||
-- Adjust current top and bottom margins if needed
|
||||
if self.unscaled_margins[2] ~= self.unscaled_margins[4] then
|
||||
|
||||
Reference in new issue
Block a user