Skip to content

Releases: DioxusLabs/taffy

v0.3.18

02 Nov 19:05
Compare
Choose a tag to compare

Fixes

  • Fix computation of Flexbox automatic minimum size when grid or flexbox child has an explicit width/height style set (#576)

v0.3.17

02 Nov 19:04
Compare
Choose a tag to compare

Added

  • Added total_node_count method to the Taffy struct. Returns the total number of nodes in the tree.

Fixes

  • Flexbox: fix O(n^2) order lookup (#537). Greatly improves layout performance on wide trees.

v0.3.16

09 Oct 22:13
Compare
Choose a tag to compare

Fixes

  • Improve flexbox column performance (#557)

v0.3.15

05 Oct 11:09
Compare
Choose a tag to compare

Fixes

  • Fix justify-content and align-content when free space is negative (content overflows container) (#549) (#551)

v0.3.14

02 Oct 22:56
43d7656
Compare
Choose a tag to compare

Fixes

  • Flexbox: Fix issue where constraints were not being propagated, causing nodes with inherent aspect-ratio (typically images) to not apply that aspect-ratio (#545) (Fixes bevyengine/bevy#9841)

v0.3.13

14 Aug 22:10
Compare
Choose a tag to compare

Fixes

  • Fix rounding accumulation bug (#521) (Fixes #501 and bevyengine/bevy#8911)

  • Flexbox: pass correct cross-axis available space when computing an item's intrinsic main size (#522)(Fixes bevyengine/bevy#9350)

  • Flexbox: Subtract child margin not parent margin when computing stretch-alignment known size

  • Grid: Make CSS Grid algorithm correctly apply max width/height and available space when it is the root node (#491)

  • Grid: Fix CSS Grid "auto track" / placement bugs #481

    • Fix divide by zero when using grid_auto_rows/grid_auto_columns with zero negative implicit tracks
    • Fix over counting of tracks (leading to incorrect container heights) when auto-placing in grids that contain negative implicit tracks.
    • Fix axis conflation in auto-placement code when grid_auto_flow is column
    • Fix assignment of auto track sizes when initializing negative implicit tracks
  • Leaf: Apply margins to leaf nodes when computing available space for measure functions

  • Leaf: Reserve space for padding/borders in nodes with measure functions (#497)

    NOTE: This has the potential to break layouts relying on the old behaviour. However, such layouts would be relying on a style having no effect, so it is judged that such layouts are unlikely to exist in the wild. If this turns out not to be true then this fix will be reverted on the 0.3.x branch.

Dependencies

  • Upgrade grid to 0.10. This eliminates the transitive dependency on no-std-compat.

v0.3.12

19 Apr 16:05
f58f642
Compare
Choose a tag to compare

Fixes

  • Fix caching issue when toggling display:none on and off

v0.3.11

09 Apr 22:41
83b9ac1
Compare
Choose a tag to compare

Fixes

  • Fix exponential blowup when laying out trees containing nodes with min and max sizes.

v0.3.10

30 Mar 10:48
50e6ff8
Compare
Choose a tag to compare

Fixes

  • Fix sizing of children when the available_space < min_size (#407)

v0.3.9

20 Mar 13:51
2942c70
Compare
Choose a tag to compare

Fixes