Skip to content

Releases: DioxusLabs/taffy

v0.8.3

08 Jun 14:44
a31a40b
Compare
Choose a tag to compare

Fixed

  • Fix serde feature on 32bit targets (#845)

v0.8.2

30 May 16:58
9bace2c
Compare
Choose a tag to compare

Fixed

  • Fix: Calculate correct new grid size when expanding cell_occupancy_matrix in the negative direction (#843)

v0.8.1

22 Apr 18:19
3d585ec
Compare
Choose a tag to compare

Added

  • Impl GridItemStyle and BlockContainerStyle for Style (#832).

v0.8.0

01 Apr 01:39
c3ecb7d
Compare
Choose a tag to compare

Highlights

The big feature in this release is support for calc() values in the low-level API.

To use this API:

  • Implement the resolve_calc_value method when implementing the LayoutPartialTree trait.
  • Pass a type-erased pointer (*const ()) to constructors like LengthPercentage::calc(...)

Taffy treats the pointer as an opaque value (excepting that it uses the low 3 bits as a tag) which it will
pass to LayoutPartialTree::resolve_calc_value along with a percentage resolution basis when it needs to
resolve the value.

Changed

  • The representation of many "size" types is now a tagged pointer than an enum. This is to enable calc().
    The effected types are LengthPercentage, LengthPercentageAuto, Dimension, MinTrackSizingFunction, and
    MaxTrackSizingFunction types.

Added

  • Special-case "compressible replaced elements" in grid sizing algorithm (#807)
    This allows for more correct sizing of "replaced" elements such as images that are children
    of flexbox or grid containers.

Fixed

  • Grid: Fix infinite loop due to float precision in grid layout maximise tracks step (#792)
  • Grid: Fix removed wrong addition, causing items to be misplaced. (#817)
  • Grid: Fix grid placement for items with fixed primary axis (#818)
  • Leaf layout: don't set available space to max-size (#819)

v0.7.7

22 Mar 01:07
Compare
Choose a tag to compare

Fixed

  • Add #[inline] annotation to some methods on TaffyTree (#802)
  • Add TaffyTree::remove_children_range method (#802)

v0.7.6

20 Feb 11:07
Compare
Choose a tag to compare

Fixed

  • Fix infinite loop due to float precision in grid layout maximise tracks step (#792)

v0.7.5

10 Jan 08:53
Compare
Choose a tag to compare

Fixed

  • Grid: only stretch auto tracks if content-alignment is stretch (#783)

v0.7.4

09 Jan 10:19
Compare
Choose a tag to compare

Fixed

  • Fix detailed grid info for empty grid (#782)

v0.7.3

06 Jan 10:52
9978ebc
Compare
Choose a tag to compare

Fixed

  • Make TaffyTree::detailed_layout_info take &self rather than &mut self (#779)

v0.7.2

03 Jan 09:13
6bd7bc1
Compare
Choose a tag to compare

Added

  • The ability to access computed track sizes and item positions of a CSS Grid layout (#772).
    This information can be accessed using the LayoutGridContainer::set_detailed_grid_info method
    in the low-level API or the TaffyTree::detailed_layout_info method in the high-level API.