pub fn subtract_padding(
size: &LayoutSize,
padding: &ResolvedOffsets,
) -> LayoutSize
Expand description
Subtracts the padding from the size, returning the new size
Warning: The resulting rectangle may have negative width or height
pub fn subtract_padding(
size: &LayoutSize,
padding: &ResolvedOffsets,
) -> LayoutSize
Subtracts the padding from the size, returning the new size
Warning: The resulting rectangle may have negative width or height