From 6d7addd5f959e3dc2b17cdb49b7b1f9f5e45814f Mon Sep 17 00:00:00 2001 From: Curtis Wensley Date: Fri, 6 Dec 2024 11:32:39 -0800 Subject: [PATCH] Mac: Fix turning off TextArea.Wrap with Right or Center alignment --- src/Eto.Mac/Forms/Controls/TextAreaHandler.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Eto.Mac/Forms/Controls/TextAreaHandler.cs b/src/Eto.Mac/Forms/Controls/TextAreaHandler.cs index 330ada5fd..f678a293a 100644 --- a/src/Eto.Mac/Forms/Controls/TextAreaHandler.cs +++ b/src/Eto.Mac/Forms/Controls/TextAreaHandler.cs @@ -306,7 +306,11 @@ public bool Wrap { Control.HorizontallyResizable = true; Control.TextContainer.WidthTracksTextView = false; - Control.TextContainer.ContainerSize = new CGSize(float.MaxValue, float.MaxValue); + + // anything greater then selection isn't shown when alignment isn't Left + // even though the default size is 10000000, setting it to that doesn't work. + // must be some weird magic going on behind the scenes.. + Control.TextContainer.Size = new CGSize(9999999, float.MaxValue); } } }