mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Dictionary: fix invalid highlight when switching dictionary (#14028)
When the contents of the HtmlBoxWidget changed the page boxes were not invalidated, this resulted the highlight to show up at a wrong coordinate. Fixes #14013
This commit is contained in:
@@ -264,6 +264,8 @@ function HtmlBoxWidget:setContent(body, css, default_font_size, is_xhtml, no_css
|
||||
self.document:layoutDocument(self.dimen.w, self.dimen.h, default_font_size)
|
||||
|
||||
self.page_count = self.document:getPages()
|
||||
self.page_boxes = nil
|
||||
self:clearHighlight()
|
||||
end
|
||||
|
||||
function HtmlBoxWidget:_render()
|
||||
|
||||
Reference in New Issue
Block a user