Jump to content
Sign in to follow this  
dynamicnetworks

Bug Reports • [0.15.31] Invalid text width inside the LuaFrame

Recommended Posts

I created a label inside the frame and assigned it some description from the localized file.
Also for label specified parameter single_line = false.

Code:
local label = content_tab.add({type = "frame", name = "frame_for_label", style = "text_frame"})
label.add({type = "label", name = "label_0", caption = {"mod.caption"}, single_line = false  })

Code:
data.raw["gui-style"].default["text_frame"] =
{
  type = "frame_style",
  maximal_width = 270,
  minimal_width = 270,
  scalable = false,
}

When I entered the game, I saw the following:
Image

Using the parameter want_ellipsis = true also yields no result :(

I also tried to create the following style for the label:
Code:
data.raw["gui-style"].default["my_label"] =
{
  type = "label_style",
  width = 260,
  single_line = false,
  left_padding = 1,
  right_padding = 1,
  top_padding = 1,
  bottom_padding = 1,
  scalable = false,
}

But this also did not have any effect.
What am I doing wrong?

Statistics: Posted by _npo6ka_ — Sat Sep 09, 2017 6:52 pm


View the full article

Share this post


Link to post
Share on other sites
Sign in to follow this  

×