Function re_ui::is_in_resizable_panel

source ·
pub(crate) fn is_in_resizable_panel(ui: &Ui) -> bool
Expand description

Is this Ui in a resizable panel?

Used as a heuristic to figure out if it is safe to truncate text.

In a resizable panel, it is safe to truncate text if it doesn’t fit, because the user can just make the panel wider to see the full text.

In other places, we should never truncate text, because then the user cannot read it all. In those places (when this functions returns false) you should either wrap the text or let it grow the Ui it is in.