Make BorderRenderElement scale-agnostic

This commit is contained in:
Ivan Molodetskikh
2024-05-03 21:49:47 +04:00
parent 8ab50f9d1c
commit 74996a2416
6 changed files with 12 additions and 29 deletions
-1
View File
@@ -721,7 +721,6 @@ impl<W: LayoutElement> Tile<W> {
// radius.
if radius != CornerRadius::default() && has_border_shader {
return BorderRenderElement::new(
scale,
elem.geometry(Scale::from(1.)).to_logical(1),
Rectangle::from_loc_and_size(Point::from((0, 0)), geo.size),
elem.color(),