Improve consistency of Padding API
This commit is contained in:
parent
53110f0ede
commit
5b029ae61c
6 changed files with 48 additions and 29 deletions
|
|
@ -665,7 +665,7 @@ where
|
|||
line_height: self.text_line_height,
|
||||
font,
|
||||
bounds: Size::new(
|
||||
bounds.width - self.padding.horizontal(),
|
||||
bounds.width - self.padding.x(),
|
||||
f32::from(self.text_line_height.to_absolute(text_size)),
|
||||
),
|
||||
align_x: text::Alignment::Default,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue