fix: layout fixes for nav bar
This commit is contained in:
parent
c571a289b4
commit
e778782328
4 changed files with 11 additions and 7 deletions
|
|
@ -87,11 +87,11 @@ where
|
|||
if num != 0 {
|
||||
height = (num as f32 * height) + (num as f32 * spacing) - spacing;
|
||||
}
|
||||
|
||||
let size =
|
||||
limits
|
||||
.height(Length::Fixed(height))
|
||||
.resolve(width, height, Size::new(width, height));
|
||||
let size = limits.height(Length::Fixed(height)).resolve(
|
||||
self.width,
|
||||
self.height,
|
||||
Size::new(width, height),
|
||||
);
|
||||
|
||||
layout::Node::new(size)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue