fn clamp_size(size: u32, min: u32, step: u32) -> u32