fix(compatibility): fix grid glitch edge-case when resizing (#149)
* fix(compatibility): fix grid glitch edge-case when resizing a grid with a scroll region * style(fmt): rustfmt
This commit is contained in:
parent
e7ea05f50b
commit
81af57b15d
1 changed files with 4 additions and 2 deletions
|
|
@ -636,7 +636,8 @@ impl Grid {
|
||||||
// region
|
// region
|
||||||
for _ in 0..count {
|
for _ in 0..count {
|
||||||
self.viewport.remove(current_line_index);
|
self.viewport.remove(current_line_index);
|
||||||
self.viewport.insert(scroll_region_bottom, Row::new());
|
self.viewport
|
||||||
|
.insert(scroll_region_bottom, Row::new().canonical());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -652,7 +653,8 @@ impl Grid {
|
||||||
// of the scroll region
|
// of the scroll region
|
||||||
for _ in 0..count {
|
for _ in 0..count {
|
||||||
self.viewport.remove(scroll_region_bottom);
|
self.viewport.remove(scroll_region_bottom);
|
||||||
self.viewport.insert(current_line_index, Row::new());
|
self.viewport
|
||||||
|
.insert(current_line_index, Row::new().canonical());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue