Add some test cases

This commit is contained in:
Conrad Irwin 2023-11-18 22:16:28 -07:00
parent cf47ed2c5f
commit 0711121586
4 changed files with 62 additions and 11 deletions

View file

@ -1,5 +1,5 @@
use crate::{
px, AnyElement, BorrowWindow, Bounds, Component, Element, ElementId, LayoutId, Pixels,
AnyElement, BorrowWindow, Bounds, Component, Element, ElementId, LayoutId, Pixels,
SharedString, Size, TextRun, ViewContext, WrappedLine,
};
use parking_lot::{Mutex, MutexGuard};

View file

@ -159,7 +159,7 @@ impl TaffyLayoutEngine {
.compute_layout_with_measure(
id.into(),
available_space.into(),
|known_dimensions, available_space, node_id, context| {
|known_dimensions, available_space, _node_id, context| {
let Some(measure) = context else {
return taffy::geometry::Size::default();
};