tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 231Rust 9TOML 3CSS 1345 Definiciones

cleanup: remove comments

5b0290a83c19540e15d53629add7c976e6ad4719 · por Jonathan Kelley · (hace 4 años) · padre d476ced5d · ver el árbol en este commit

Delta semántico

Ninguna definición cambió: el cambio es de texto, documentación o datos.

1 archivos · +1 −2

diff --git a/src/algo.rs b/src/algo.rs
index 15ee8b16f..758a3a862 100644
--- a/src/algo.rs
+++ b/src/algo.rs
@@ -105,13 +105,12 @@ impl Forest {
         let abs_x = abs_x + layout.location.x;
         let abs_y = abs_y + layout.location.y;
 
-        // layout.location.x = sys::round(layout.location.x);
-        // layout.location.y = sys::round(layout.location.y);
         layout.location.x = sys::round(abs_x);
         layout.location.y = sys::round(abs_y);
 
         layout.size.width = sys::round(abs_x + layout.size.width) - sys::round(abs_x);
         layout.size.height = sys::round(abs_y + layout.size.height) - sys::round(abs_y);
+        
         for child in &children[root] {
             Self::round_layout(nodes, children, *child, abs_x, abs_y);
         }