Skip to content

Improve usability of layouts

Duggan, John requested to merge 33-improve-usability-of-layouts into main

Summary of Changes

Streamlines usage of GridLayout, HBoxLayout, and VBoxLayout by removing row/column parameters and completely removing add_child calls for each one. Instead, you can set row_span and column_span attributes on the elements directly when you add them.

GridLayout's rows parameter has been removed, it now does its best to automatically layout out rows with a consistent height. HBoxLayout & VBoxLayout now support halign and valign parameters for more precise control over alignment/justification.

Checklist

  • The MR has a clear and concise title
  • Code is self-documented and follows style guidelines.
  • Automated tests are written and pass successfully.
  • Regression tests (e.g. manually triggered system tests, manual GUI/tool tests, ...) are performed to make sure the MR does not break anything (when applicable)
  • Readme file is present and up-to-date.

Documentation Updates

Additional Notes

Closes #33 (closed)

Merge request reports