Skip to content

Commit

Permalink
Fixed size groups should not center
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoods committed Dec 9, 2024
1 parent b52e053 commit f941de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composable-views/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub trait View: Sized {
/// Set the size of the `View` to a fixed value.
fn fixed(self, width: f32, height: f32) -> impl View {
let size = self.size();
if size.is_empty() {
if self.needs_layout() || size.is_empty() {
return Err(Fixed {
size: Size::new(width, height),
view: self,
Expand Down

0 comments on commit f941de5

Please sign in to comment.