Revert "Добавлена корректировка координат, если при текущих объект "выходит" за границы"

This reverts commit ee1b2807679c4ce03ee349da9a54e58730f5fda4.
This commit is contained in:
Esenia12 2024-03-02 21:39:07 +04:00
parent ee1b280767
commit e15c1c66fd

View File

@ -83,27 +83,6 @@ public class DrawningDumpTrack
_pictureWidth = width;
_pictureHeight = height;
if (_startPosX.HasValue || _startPosY.HasValue)
{
if (_drawningDumpTrackWidth + _startPosX > _pictureWidth)
{
_startPosX = _pictureWidth.Value - _drawningDumpTrackWidth;
}
else if (_startPosX < 0)
{
_startPosX = 0;
}
if (_drawningDumpTrackHeight + _startPosY > _pictureHeight)
{
_startPosY = _pictureHeight.Value - _drawningDumpTrackHeight;
}
else if (_startPosY < 0)
{
_startPosY = 0;
}
}
return true;
}