fixed selection visualization in asset browser
@@ -61,9 +61,19 @@ impl Control for AssetItem {
fn draw(&self, drawing_context: &mut DrawingContext) {
let bounds = self.bounding_rect();
drawing_context.push_rect_filled(&bounds, None);
- drawing_context.commit(bounds, self.background(), CommandTexture::None, None);
+ drawing_context.commit(
+ self.clip_bounds(),
+ self.background(),
+ CommandTexture::None,
+ None,
+ );
drawing_context.push_rect(&bounds, 1.0);
- drawing_context.commit(bounds, self.foreground(), CommandTexture::None, None);
+ drawing_context.commit(
+ self.clip_bounds(),
+ self.foreground(),
+ CommandTexture::None,
+ None,
+ );
}
fn handle_routed_message(&mut self, ui: &mut UserInterface, message: &mut UiMessage) {
