diff --git a/egui/src/widget_text.rs b/egui/src/widget_text.rs index 1fc9ebdf..497fb3e7 100644 --- a/egui/src/widget_text.rs +++ b/egui/src/widget_text.rs @@ -345,7 +345,7 @@ pub enum WidgetText { /// /// Only [`LayoutJob::text`] and [`LayoutJob::sections`] are guaranteed to be respected. /// - /// [`LayoutJob::wrap_width`], [`LayoutJob::halign`], [`LayoutJob::justify`] + /// [`TextWrapping::max_width`](epaint::text::TextWrapping::max_width), [`LayoutJob::halign`], [`LayoutJob::justify`] /// and [`LayoutJob::first_row_min_height`] will likely be determined by the [`crate::Layout`] /// of the [`Ui`] the widget is placed in. /// If you want all parts of the [`LayoutJob`] respected, then convert it to a diff --git a/epaint/src/text/text_layout_types.rs b/epaint/src/text/text_layout_types.rs index 866aeb16..9d124608 100644 --- a/epaint/src/text/text_layout_types.rs +++ b/epaint/src/text/text_layout_types.rs @@ -65,7 +65,7 @@ pub struct LayoutJob { /// How to horizontally align the text (`Align::LEFT`, `Align::Center`, `Align::RIGHT`). pub halign: Align, - /// Justify text so that word-wrapped rows fill the whole [`Self::wrap_width`] + /// Justify text so that word-wrapped rows fill the whole [`TextWrapping::max_width`] pub justify: bool, }