Skip to content

Commit

Permalink
Fixed compilation errors in width-to-height stub
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Oct 10, 2018
1 parent d8403c9 commit 2b9a791
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ui_solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,12 +985,14 @@ fn get_nearest_positioned_ancestor<'a>(start_node_id: NodeId, arena: &Arena<Disp
None
}

use dom::NodeType;

fn determine_height_based_on_width(node_id: NodeId, arena: &Arena<RectLayout>) {
let preferred_height = determine_preferred_height(&node);
let preferred_height = determine_preferred_height(&arena[node_id].data);
}

/// Returns the height based on the width of a node type (esp. text caching)
fn height_from_width(node_type: NodeType) -> f32 {
fn height_from_width<T: Layout>(node_type: NodeType<T>) -> f32 {
50.0
}

Expand Down

0 comments on commit 2b9a791

Please sign in to comment.