Annotations: fixes (#11761)
This commit is contained in:
1 parent
c47d3b3177
commit
725df17c45
4 files changed
+8
-9
No files matched your search
@@ -1119,6 +1119,7 @@ function ReaderHighlight:_getHighlightMenuAnchor()
|
||||
if self.ui.paging then
|
||||
text_box = self.view:pageToScreenTransform(self.ui.paging.current_page, text_box)
|
||||
end
|
||||
if text_box == nil then return end -- fallback to "center"
|
||||
anchor_y = text_box.y + text_box.h + Size.padding.small -- do not stick to the box
|
||||
if anchor_y + dialog_box.h <= self.screen_h - Size.padding.small then -- enough room below box with gest_pos
|
||||
prefers_pop_down = true
|
||||
|
||||
Reference in new issue
Block a user