Add some test cases
This commit is contained in:
@@ -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};
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user