layout/scrolling: Use slice::fill()
Browse files at this commitb49f7dcb4d0973b74110a64ff5f905442cd2f7f1Parent: 60034a51 changed file +1 -3
- src/layout/scrolling.rs +1 -3
src/layout/scrolling.rsmodified+1 -3
| @@ -4167,9 +4167,7 @@ impl<W: LayoutElement> Column<W> { | |||
| 4167 | let min_height = f64::min(max_tile_height, min_height); | 4167 | let min_height = f64::min(max_tile_height, min_height); |
| 4168 | let tabbed_height = f64::max(tabbed_height, min_height); | 4168 | let tabbed_height = f64::max(tabbed_height, min_height); |
| 4169 | 4169 | ||
| 4170 | - for h in &mut heights { | 4170 | + heights.fill(WindowHeight::Fixed(tabbed_height)); |
| 4171 | - *h = WindowHeight::Fixed(tabbed_height); | ||
| 4172 | - } | ||
| 4173 | 4171 | ||
| 4174 | // The following logic will apply individual min/max height, etc. | 4172 | // The following logic will apply individual min/max height, etc. |
| 4175 | } | 4173 | } |