Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column constraints not working under certain circumstances #23

Open
stefaniamak opened this issue Aug 28, 2020 · 0 comments
Open

Column constraints not working under certain circumstances #23

stefaniamak opened this issue Aug 28, 2020 · 0 comments
Labels
Revive: Keep issue has been looked at and deemed potentially helpful for revive Status: Needs Investigation Requires to be checked for feasibility, reproducability, etc. Type: Bug Issues reporting and PRs fixing problems

Comments

@stefaniamak
Copy link
Collaborator

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

@jdrueckert jdrueckert added Type: Bug Issues reporting and PRs fixing problems Status: Needs Investigation Requires to be checked for feasibility, reproducability, etc. Revive: Keep issue has been looked at and deemed potentially helpful for revive labels Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Revive: Keep issue has been looked at and deemed potentially helpful for revive Status: Needs Investigation Requires to be checked for feasibility, reproducability, etc. Type: Bug Issues reporting and PRs fixing problems
Projects
None yet
Development

No branches or pull requests

2 participants