-
-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Add vertical
property to GridContainers
#98681
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
base: master
Are you sure you want to change the base?
Conversation
63c8652
to
2c675a1
Compare
vertical
property to GridContainersvertical
property to GridContainers
I'm trying to fix some formatting issues in the .xml and .svg files to meet the static style checks, but processing the new .svg files gives me this error:
I used svgcleaner to optimize the files, and I checked the line endings. Is there a style guide or is something missing? |
The new line message is just verbose. The output shows a diff with the correct format which moves the parameters in -<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path fill="#8eef97" d="m3 1c-1.1045695 0-2 .8954305-2 2v10c0 1.104569.8954305 2 2 2h10c1.104569 0 2-.895431 2-2v-10c0-1.1045695-.895431-2-2-2zm0 2h2v4h-2zm4 0h2v4h-2zm4 0h2v4h-2zm-8 6h2v4h-2zm4 0h2v4h-2zm4 0h2v4h-2z"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#8eef97" d="m3 1c-1.1045695 0-2 .8954305-2 2v10c0 1.104569.8954305 2 2 2h10c1.104569 0 2-.895431 2-2v-10c0-1.1045695-.895431-2-2-2zm0 2h2v4h-2zm4 0h2v4h-2zm4 0h2v4h-2zm-8 6h2v4h-2zm4 0h2v4h-2zm4 0h2v4h-2z"/></svg> The optimizer should be doing it. Looks like they switched from |
2c675a1
to
218ba43
Compare
It appears
Is it a deeper issue with how the variables are configured, or an issue with Linux Mono? |
The CI log says:
Compile a Godot binary locally and run the |
218ba43
to
28753b2
Compare
I've ran the I'm trying to figure out why |
I just found out. That's because the checks think that you refer to members diff --git a/doc/classes/HGridContainer.xml b/doc/classes/HGridContainer.xml
index 09f113035f..8a7cf007be 100644
--- a/doc/classes/HGridContainer.xml
+++ b/doc/classes/HGridContainer.xml
@@ -4,7 +4,7 @@
A container that arranges its child controls in a grid layout horizontally.
</brief_description>
<description>
- A variant of [GridContainer] that can only arrange its child controls horizontally, with a set number of [member rows], and a changing number of [member columns].
+ A variant of [GridContainer] that can only arrange its child controls horizontally, with a set number of [member GridContainer.rows], and a changing number of [member GridContainer.columns].
Child controls are rearranged automatically when their minimum size changes.
</description>
<tutorials>
diff --git a/doc/classes/VGridContainer.xml b/doc/classes/VGridContainer.xml
index 5eb54b4cbf..fb86b3e41a 100644
--- a/doc/classes/VGridContainer.xml
+++ b/doc/classes/VGridContainer.xml
@@ -4,7 +4,7 @@
A container that arranges its child controls in a grid layout vertically.
</brief_description>
<description>
- A variant of [GridContainer] that can only arrange its child controls vertically, with a set number of [member columns], and a changing number of [member rows].
+ A variant of [GridContainer] that can only arrange its child controls vertically, with a set number of [member GridContainer.columns], and a changing number of [member GridContainer.rows].
Child controls are rearranged automatically when their minimum size changes.
</description>
<tutorials>
|
The diff should be good now. It included too much stuff from when I was experimenting at first. Sorry. |
I understand it's there for consistency with existing containers, but is there actually a need for H and V versions of GridContainer too? |
It's there mainly for consistency with the other containers. Plus, the H and V versions make it clearer how the GridContainer is being used. |
28753b2
to
17c36d0
Compare
This comment was marked as resolved.
This comment was marked as resolved.
17c36d0
to
66b218a
Compare
66b218a
to
1268b90
Compare
d6c07a0
to
4dd10b1
Compare
4dd10b1
to
7ef9325
Compare
For some reason, Git is preventing me from changing the line endings of the following SVG files from CRLF to LF:
There is no newline at the end of the file, so it fails the first test. Can I get some help fixing these? |
You need to add a LF line ending at the end of each file (currently, there is none). I suggest configuring your editor to always use LF line endings, then modifying the SVGs in question. Many editors also have a "Ensure final newline on save" setting I suggest enabling too. |
Grid Containers could only set a fixed number of vertical columns, which restricts its use on shorter, wider screens, compared to other containers with Horizontal/Vertical counterparts.
By adding a vertical property to Grid Containers, the user can choose to fix the number of rows OR columns in the grid.
Bugsquad edit:
vertical
property to GridContainer godot-proposals#10234