Add some test cases
This commit is contained in:
parent
cf47ed2c5f
commit
0711121586
4 changed files with 62 additions and 11 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue