gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1114HTML 1040Markdown 12TOML 94698 Definiciones

code cleanup

78fd7fb593794280041af9ae930ac65701d5cc85 · por Emil Sjölander · (hace 7 años) · padre 7db102dac · ver el árbol en este commit

Delta semántico · 1

src/algo.rs

1 archivos · +1 −1

diff --git a/src/algo.rs b/src/algo.rs
index 52e7666ab..778e87e17 100644
--- a/src/algo.rs
+++ b/src/algo.rs
@@ -395,7 +395,7 @@ fn compute_internal(
 
     flex_items.iter_mut().for_each(|child| {
         child.inner_flex_basis =
-            child.flex_basis - (child.padding.main(node.flex_direction) + child.border.main(node.flex_direction));
+            child.flex_basis - child.padding.main(node.flex_direction) - child.border.main(node.flex_direction);
 
         // TODO - not really spec abiding but needs to be done somewhere. probably somewhere else though.
         // The following logic was developed not from the spec but by trail and error looking into how