diff --git a/CHANGELOG.md b/CHANGELOG.md index 337f7dc..61bac5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + + ## Unreleased ### Breaking Changes @@ -66,6 +68,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `Progress` now utilizes `IntoSource` instead of `IntoDynamic`. In general, this should not cause any code breakages unless the traits were being used in generics. +- `Space` now honors `ConstraintLimit::Fill` in its layout. ### Changed diff --git a/src/widgets.rs b/src/widgets.rs index 6e86508..9ea27e4 100644 --- a/src/widgets.rs +++ b/src/widgets.rs @@ -42,6 +42,8 @@ pub use custom::Custom; pub use data::Data; pub use disclose::Disclose; pub use expand::Expand; +pub use grid::Grid; +pub use image::Image; pub use input::Input; pub use label::Label; pub use layers::Layers; @@ -60,5 +62,3 @@ pub use themed::Themed; pub use tilemap::TileMap; pub use validated::Validated; pub use wrap::Wrap; - -pub use self::image::Image; diff --git a/src/widgets/space.rs b/src/widgets/space.rs index 86dfa77..64c8977 100644 --- a/src/widgets/space.rs +++ b/src/widgets/space.rs @@ -71,10 +71,10 @@ impl Widget for Space { fn layout( &mut self, - _available_space: Size, + available_space: Size, _context: &mut LayoutContext<'_, '_, '_, '_>, ) -> Size { - Size::default() + available_space.map(ConstraintLimit::min) } } diff --git a/src/window.rs b/src/window.rs index f47d4cb..7865e9c 100644 --- a/src/window.rs +++ b/src/window.rs @@ -3177,6 +3177,7 @@ where /// # Panics /// /// This function panics if the color is not the expected color. + #[track_caller] pub fn assert_pixel_color(&self, location: Point, expected: Color, component: &str) where Unit: Into,