Skip to content

Commit

Permalink
Merge pull request #2711 from cwensley/curtis/mac-fix-textarea-wrap
Browse files Browse the repository at this point in the history
Mac: Fix turning off TextArea.Wrap with Right or Center alignment
  • Loading branch information
cwensley authored Dec 10, 2024
2 parents 3ba03b9 + 6d7addd commit 94fcd16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Eto.Mac/Forms/Controls/TextAreaHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 94fcd16

Please sign in to comment.