|
@@ -1720,22 +1720,23 @@ namespace ComPDFKit.Tool.DrawTool
|
|
|
parentUI.SetValue(Canvas.TopProperty, drawRect.Top);
|
|
|
|
|
|
// The width is incorrect
|
|
|
+
|
|
|
if (mouseEndPoint.X >= mouseStartPoint.X)
|
|
|
{
|
|
|
- parentUI.MaxWidth = (pageBound.Right - drawRect.X - cropPoint.X);
|
|
|
+ parentUI.MaxWidth = (pageBound.Right - drawRect.X);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- parentUI.MaxWidth = (drawRect.Right - pageBound.X - cropPoint.X);
|
|
|
+ parentUI.MaxWidth = (drawRect.Right - pageBound.X);
|
|
|
}
|
|
|
|
|
|
if (mouseEndPoint.Y >= mouseStartPoint.Y)
|
|
|
{
|
|
|
- parentUI.MaxHeight = (pageBound.Bottom - drawRect.Y - cropPoint.Y);
|
|
|
+ parentUI.MaxHeight = (pageBound.Bottom - drawRect.Y);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- parentUI.MaxHeight = (drawRect.Bottom - pageBound.Y - cropPoint.Y);
|
|
|
+ parentUI.MaxHeight = (drawRect.Bottom - pageBound.Y);
|
|
|
}
|
|
|
|
|
|
}
|