mail/view: Fix HtmlView not being redrawn when parent is dirty

This commit is contained in:
Manos Pitsidianakis 2022-08-22 23:12:48 +03:00
parent ed3dbc8586
commit 824f614a69

View File

@ -1646,6 +1646,9 @@ impl Component for MailView {
match self.mode {
ViewMode::Subview if self.subview.is_some() => {
if let Some(s) = self.subview.as_mut() {
if !s.is_dirty() {
s.set_dirty(true);
}
s.draw(grid, (set_y(upper_left, y), bottom_right), context);
}
}