Skip to main content

fit_tail

Function fit_tail 

pub fn fit_tail(
    tr: &mut TextRenderer,
    s: &str,
    style: &TextStyle,
    budget: f64,
) -> String
Expand description

Keep the tail of s. What a person is typing is at the end, so a field that has run out of room drops the beginning, not the caret.