Remove padding from Container for now
This commit is contained in:
parent
ceb02f4a36
commit
d4d14b68f4
5 changed files with 13 additions and 23 deletions
|
|
@ -46,7 +46,9 @@ impl Node {
|
|||
Align::Center => {
|
||||
self.bounds.x += (space.width - self.bounds.width) / 2.0;
|
||||
}
|
||||
Align::End => {}
|
||||
Align::End => {
|
||||
self.bounds.x += space.width - self.bounds.width;
|
||||
}
|
||||
}
|
||||
|
||||
match vertical_alignment {
|
||||
|
|
@ -54,7 +56,9 @@ impl Node {
|
|||
Align::Center => {
|
||||
self.bounds.y += (space.height - self.bounds.height) / 2.0;
|
||||
}
|
||||
Align::End => {}
|
||||
Align::End => {
|
||||
self.bounds.y += space.height - self.bounds.height;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue