Resizing a None border doesn't allocate one
@@ -646,15 +646,9 @@ impl Container {
/// Panics on non-`View`/`Container`s
pub fn resize_borders(&mut self, geo: Geometry) {
match *self {
- Container::View { handle, ref mut borders, ..} => {
+ Container::View { ref mut borders, ..} => {
if let Some(borders_) = borders.take() {
*borders = borders_.reallocate_buffer(geo)
- } else {
- let thickness = Borders::thickness();
- if thickness > 0 {
- let output = handle.get_output();
- *borders = Borders::new(geo, output);
- }
}
},
Container::Container { output_handle,
