mirror of
https://github.com/Insality/druid.git
synced 2025-06-26 18:07:45 +02:00
Reset width and leading of the reusable table TEXT_METRICS_OPTIONS by default
This commit is contained in:
parent
58f14d0a64
commit
d0067e5496
@ -473,6 +473,9 @@ function M.get_text_metrics_from_node(text_node)
|
||||
options.tracking = gui.get_tracking(text_node)
|
||||
options.line_break = gui.get_line_break(text_node)
|
||||
|
||||
options.width = 0
|
||||
options.leading = 0
|
||||
|
||||
-- Gather other options only if it used in node
|
||||
if options.line_break then
|
||||
options.width = gui.get_size(text_node).x
|
||||
|
Loading…
x
Reference in New Issue
Block a user