Function keep_share_fraction

Source
fn keep_share_fraction(tree: &mut Tree<Pane>, id: TileId, fraction: f32)
Expand description

Give a just-dropped tile the same fraction of its new parent as it had in the old one: a fresh split hands out 1:1 shares, which silently halves whatever you dropped the pane onto.