diff --git a/README.md b/README.md index e1ebd98..c8ec557 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Open your `game.project` file and add the following lines to the dependencies fi **[Druid](https://github.com/Insality/druid/)** ``` -https://github.com/Insality/druid/archive/refs/tags/1.1.3.zip +https://github.com/Insality/druid/archive/refs/tags/1.1.4.zip ``` **[Defold Event](https://github.com/Insality/defold-event)** diff --git a/druid/helper.lua b/druid/helper.lua index ab3109a..c38faca 100644 --- a/druid/helper.lua +++ b/druid/helper.lua @@ -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 diff --git a/game.project b/game.project index 8b5dabd..1cf898b 100644 --- a/game.project +++ b/game.project @@ -14,7 +14,7 @@ update_frequency = 60 [project] title = Druid -version = 1.1.3 +version = 1.1.4 publisher = Insality developer = Maksim Tuprikov custom_resources = /example/locales diff --git a/wiki/changelog.md b/wiki/changelog.md index 6e25659..ddef357 100644 --- a/wiki/changelog.md +++ b/wiki/changelog.md @@ -713,6 +713,8 @@ Please support me if you like this project! It will help me keep engaged to upda #### Druid 1.1.3 - Fix for node_id of cloned nodes with `gui.clone_tree` +#### Druid 1.1.4 +- [#312] Fix for text metrics issue if returned height is 0 sometimes ### Druid 1.2.0 - Fix for blocker internal enabled state depends from GUI node