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:
parent
8082bf37b8
commit
6c67e7485e
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue