From a48c69d809e2eaaeb9389f6014474d5066376856 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 15 Aug 2021 17:03:24 +0200 Subject: [PATCH] Improve UI docs, pointing to Ui::available_size Closes #541 --- egui/src/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egui/src/ui.rs b/egui/src/ui.rs index b92539df..c01b4207 100644 --- a/egui/src/ui.rs +++ b/egui/src/ui.rs @@ -579,7 +579,7 @@ impl Ui { /// ## How sizes are negotiated /// Each widget should have a *minimum desired size* and a *desired size*. /// When asking for space, ask AT LEAST for your minimum, and don't ask for more than you need. - /// If you want to fill the space, ask about `available().size()` and use that. + /// If you want to fill the space, ask about [`Ui::available_size`] and use that. /// /// You may get MORE space than you asked for, for instance /// for justified layouts, like in menus. @@ -624,7 +624,7 @@ impl Ui { /// ## How sizes are negotiated /// Each widget should have a *minimum desired size* and a *desired size*. /// When asking for space, ask AT LEAST for your minimum, and don't ask for more than you need. - /// If you want to fill the space, ask about `available().size()` and use that. + /// If you want to fill the space, ask about [`Ui::available_size`] and use that. /// /// You may get MORE space than you asked for, for instance /// for justified layouts, like in menus.