From 8e4d033cd7c650a9371d3bb7a5f466baa8b8b539 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Mon, 3 Mar 2025 14:55:30 +1300 Subject: [PATCH] Update warning message --- layout.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layout.lua b/layout.lua index efe30ce..a0969d2 100644 --- a/layout.lua +++ b/layout.lua @@ -174,16 +174,17 @@ end size_getters.scroll_container = size_getters.container function size_getters.label(node) - -- Labels always have a distance of 0.5 between each line regardless of the - -- font size - local style = node.style if node.h and style and style.font_size then core.log("warning", "[flow] Labels with a fixed height set will be " .. "positioned as if font_size was not specified for backwards " .. - "compatibility reasons.") + "compatibility reasons. This behaviour is deprecated, please " .. + "avoid relying on it if possible.") style = nil end + + -- Labels always have a distance of 0.5 between each line regardless of the + -- font size local w, h, font_height = get_label_size(node.label, style, 0.5) node._flow_font_height = font_height return w, h