feat: stopped setting homogeneous in space_even prop is not provided

This commit is contained in:
Byson94
2025-08-22 17:34:50 +05:30
parent 68f693479c
commit 100a97e27b
2 changed files with 2 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
### Changed
- Made `x`, `y`, `widget` and `height` properties optional on window definition.
- Stopped setting **homogeneous** to true if `space_evenly` property (on box) is not defined.
### Fixed

View File

@@ -234,7 +234,7 @@ pub(super) fn build_gtk_box(props: Map, children: Vec<WidgetNode>, widget_regist
gtk_widget_clone.set_spacing(spacing_val as i32);
}
if let Ok(space_evenly) = get_bool_prop(props, "space_evenly", Some(true)) {
if let Ok(space_evenly) = get_bool_prop(props, "space_evenly", None) {
gtk_widget_clone.set_homogeneous(space_evenly);
}