tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1082HTML 1014Markdown 12TOML 83222 Sutichaykuna

code cleanup

78fd7fb593794280041af9ae930ac65701d5cc85 · ruwaq Emil Sjölander · (7 wata ñawpaq) · tayta 7db102dac · kay commitpi sach'ata qhaway

Semántico sayk'uy · 1

src/algo.rs

1 qillqakuna · +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