Skip to main content

Module positioning

Module positioning 

Source
Expand description

solver3/positioning.rs Pass 3: Final positioning of layout nodes

Functionsยง

adjust_relative_positions
Final pass to shift relatively positioned elements from their static flow position.
get_position_type
position_out_of_flow_elements
After the main layout pass, this function iterates through the tree and correctly calculates the final positions of out-of-flow elements (absolute, fixed).