Skip to content

Column constraints not working under certain circumstances #23

@stefaniamak

Description

@stefaniamak

Description

The issue appeared while I was trying to set column constrains for the row with the team names at the Game Over Screen. My goal was to set widths for each of the two columns (the first column contains the UIImage and second the UILabel), reaching the following result:

What worked

I pilled up many UISpaces in the same line, which ended up squishing the rest of the elements to the side.
https://github.com/Terasology/LightAndShadow/blob/develop/overrides/engine/ui/ingame/deathScreen.ui#L131-L162

                      {
                        "type": "UISpace",
                        "cc": ""
                      },
                      {
                        "type": "UISpace",
                        "cc": ""
                      },
                      {
                        "type": "UISpace",
                        "cc": ""
                      },
                      {
                        "type": "UISpace",
                        "cc": ""
                      },
                      {
                        "type": "UISpace",
                        "cc": ""
                      },
                      {
                        "type": "UISpace",
                        "cc": ""
                      },
                      {
                        "type": "UISpace",
                        "cc": ""
                      },
                      {
                        "type": "UISpace",
                        "cc": ""
                      },

image

What didn't work

  • Set a "width" at the UISpace
  • Set ColumnConstrains at the MigLayout
  • Place them in a RowLayout, and tried to modify that RowLayout
  • Use "span 8" at the UISpace to span it 8 cells
  • Use "cell [column] [row] [width] [height]" where the "[ ]" contain numbers, the cells were arranged correctly, but the width and height didn't change
  • Removed the "dock south" from the second MigLayout (L167) and placed it at the bottom with a width 3 and re-done the above methods, all failed

Failed result:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Revive: Keepissue has been looked at and deemed potentially helpful for reviveStatus: Needs InvestigationRequires to be checked for feasibility, reproducability, etc.Type: BugIssues reporting and PRs fixing problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions