core: Invalidate EditText's bitmap when border is disabled

This patch makes sure that the bitmap is invalidated not only when
a border or background was enabled, but also when both were disabled
and the drawing has only been cleared.
This commit is contained in:
Kamil Jarosz 2024-05-22 15:02:46 +02:00 committed by Aaron Hill
parent 8082bf37b8
commit 6c67e7485e
1 changed files with 3 additions and 3 deletions

View File

@ -788,10 +788,10 @@ impl<'gc> EditText<'gc> {
.drawing
.draw_command(DrawCommand::LineTo(Point::new(width, Twips::ZERO)));
write.drawing.draw_command(DrawCommand::LineTo(Point::ZERO));
drop(write);
self.invalidate_cached_bitmap(gc_context);
}
drop(write);
self.invalidate_cached_bitmap(gc_context);
}
/// Internal padding between the bounds of the EditText and the text.