Currently, creating UIs with centered objects is heavily hard-coded. This makes UI development more difficult and can lead to visual glitches.
Proposed Solution
Introduce parent containers that store position and size data.
These containers should handle centering or left-/right-alignment of their child objects.
After aligning the inner objects, the entire container should then be positioned on the screen.
Alternative Approach for Simple Cases
For simple cases, centering could be done by:
Calculating the maximum width within a given set of joined objects.
However, for more complex scenarios, a more efficient method is needed.
Next Steps
Implement parent containers for alignment.
Ensure UI7::Menu::JoinAlign correctly calculates the maximum width of the object set.
## **Problem Description**
Currently, creating UIs with centered objects is heavily hard-coded. This makes UI development more difficult and can lead to visual glitches.
## **Proposed Solution**
- Introduce **parent containers** that store position and size data.
- These containers should handle **centering** or **left-/right-alignment** of their child objects.
- After aligning the inner objects, the **entire container** should then be positioned on the screen.
### **Alternative Approach for Simple Cases**
For simple cases, centering could be done by:
- Calculating the **maximum width** within a given set of joined objects.
- However, for more **complex scenarios**, a more efficient method is needed.
## **Next Steps**
- Implement parent containers for alignment.
- Ensure **`UI7::Menu::JoinAlign`** correctly calculates the maximum width of the object set.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem Description
Currently, creating UIs with centered objects is heavily hard-coded. This makes UI development more difficult and can lead to visual glitches.
Proposed Solution
Alternative Approach for Simple Cases
For simple cases, centering could be done by:
Next Steps
UI7::Menu::JoinAligncorrectly calculates the maximum width of the object set.rewriteto development