feat: stopped setting homogeneous in space_even prop is not provided
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user