dictionary window triggers refresh itself, not via show()

pull/1310/head
Hans-Werner Hilse 10 years ago
parent afb59667c0
commit 8376e2f821

@ -106,7 +106,7 @@ function ReaderDictionary:showDict(word, results, box)
-- differentiate between dict and wiki
wiki = self.wiki,
}
UIManager:show(self.dict_window)
UIManager:show(self.dict_window, nil, nil, "none")
end
end

@ -149,7 +149,7 @@ function ReaderFont:onSetFontSize(new_size)
UIManager:show(Notification:new{
text = T( _("Font size set to %1."), self.font_size),
timeout = 1,
})
}, nil, nil, "none")
self.ui.document:setFontSize(Screen:scaleBySize(new_size))
self.ui:handleEvent(Event:new("UpdatePos"))

Loading…
Cancel
Save