We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea817f3 commit da95f3dCopy full SHA for da95f3d
crates/yakui-core/src/paint/paint_dom.rs
@@ -96,6 +96,12 @@ impl PaintDom {
96
profiling::scope!("PaintDom::paint");
97
98
let layout_node = layout.get(id).unwrap();
99
+ if !(layout_node.rect.size() == Vec2::ZERO // always paint if layout rect is zero-sized
100
+ || layout_node.clip.intersects(&layout_node.rect))
101
+ {
102
+ return;
103
+ }
104
+
105
self.current_clip = Rect::from_pos_size(
106
(layout_node.clip.pos() * self.scale_factor).round(),
107
(layout_node.clip.size() * self.scale_factor).round(),
0 commit comments