Add docstring to ui.with_layout

This commit is contained in:
Emil Ernerfeldt 2021-04-15 22:23:15 +02:00
parent f07bdf0433
commit 5667e7eb51

View file

@ -1397,6 +1397,10 @@ impl Ui {
)
}
/// The new layout will take up all available space.
///
/// Consider using [`Self::allocate_ui_with_layout`] instead,
/// or the helpers [`Self::horizontal]`, [`Self::vertical`], etc.
pub fn with_layout<R>(
&mut self,
layout: Layout,