aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TextRun.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GraphicObjects/TextRun.cs')
-rw-r--r--src/GraphicObjects/TextRun.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GraphicObjects/TextRun.cs b/src/GraphicObjects/TextRun.cs
index 15f024af..021d5654 100644
--- a/src/GraphicObjects/TextRun.cs
+++ b/src/GraphicObjects/TextRun.cs
@@ -206,7 +206,7 @@ namespace Crow
//ignore text alignment if size to content = true
//or if text size is larger than client bounds
- if (Bounds.Size < 0 || rText.Width > cb.Width)
+ if (Width < 0 || Height < 0 || rText.Width > cb.Width)
{
rText.X = cb.X;
rText.Y = cb.Y;