GUI2 label truncating text

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
Pentarctagon
Project Manager
Posts: 5526
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

GUI2 label truncating text

Post by Pentarctagon »

I have a GUI2 dialog defined as:

Code: Select all

[tooltip]
  id = "tooltip_large"
[/tooltip]
[helptip]
  id = "tooltip_large"
[/helptip]
[grid]
  [row]
    [column]
      [image]
        id = "left_image"
      [/image]
    [/column]
    [column]
      [grid]
        [row]
          [column]
            horizontal_grow = "true"
            [listbox]
              id = "info_list"
              [list_definition]
                [row]
                  [column]
                    horizontal_grow = "true"
                    [toggle_panel]
                      return_value = -1
                      [grid]
                        [row]
                          [column]
                            horizontal_alignment = "left"
                            [image]
                              id = "option_icon"
                            [/image]
                          [/column]
                          [column]
                            horizontal_alignment = "left"
                            [label]
                              id = "option_text"
                            [/label]
                          [/column]
                        [/row]
                      [/grid]
                    [/toggle_panel]
                  [/column]
                [/row]
              [/list_definition]
            [/listbox]
          [/column]
          [column]
            [label]
              id = "info_text"
              use_markup = "true"
              characters_per_line = 40
            [/label]
          [/column]
        [/row]
      [/grid]
    [/column]
    [column]
      [image]
        id = "right_image"
      [/image]
    [/column]
  [/row]
  [row]
  [column]
    [label]
      id = "dummy"
    [/label]
  [/column]
    [column]
      [button]
        id = "ok"
        label = "OK"
      [/button]
    [/column]
    [column]
      [label]
        id = "dummy"
      [/label]
    [/column]
  [/row]
[/grid]
And it displays as:
Screenshot_from_2018-09-16_11-25-23.png
However, the full text that should be displayed is:

Code: Select all

* Fixed macro includes.
* Upgrade option/message to DescriptionWML.
* Fixed/removed formulas.
* MusicMacros namespace added.
* Modify playlist functionality: remove songs generated list not updating correctly after song removal.
Why would the text be cut off like that?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Post Reply