Refactor text setting methods and remove ldoc files

This commit is contained in:
Insality
2024-12-08 13:35:41 +02:00
parent 9a1cd795b8
commit 6b8bbe1970
26 changed files with 158 additions and 544 deletions

View File

@@ -88,7 +88,7 @@ end
---@private
function M:refresh_content(node, hint_text, pivot_point, content_pivot)
self.text_hint:set_to(hint_text)
self.text_hint:set_text(hint_text)
local text_width, text_height = self.text_hint:get_text_size()
local panel_width = math.max(text_width, MIN_PANEL_WIDTH) + PANEL_MARGIN