From 1f3bb1fe69e8ce7967c51687b317442ad5288e1e Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:23:15 +0000 Subject: [PATCH] Workaround https://github.com/linebender/parley/issues/165 --- masonry/src/widget/prose.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/masonry/src/widget/prose.rs b/masonry/src/widget/prose.rs index 1ad58ccbc..464a903d3 100644 --- a/masonry/src/widget/prose.rs +++ b/masonry/src/widget/prose.rs @@ -19,7 +19,8 @@ use super::{Padding, TextArea, WidgetPod}; /// and the text in logical pixels. /// /// This gives the text the some slight breathing room. -const PROSE_PADDING: Padding = Padding::horizontal(2.0); +// The bottom padding is to workaround https://github.com/linebender/parley/issues/165 +const PROSE_PADDING: Padding = Padding::new(0.0, 2.0, 5.0, 2.0); /// The prose widget displays immutable text which can be /// selected within.