Минорные

This commit is contained in:
repka228 2024-03-18 23:16:33 +04:00
parent fc61c617ed
commit 22570dade4
2 changed files with 2 additions and 3 deletions

View File

@ -124,7 +124,6 @@
//
// comboBoxStrategy
//
comboBoxStrategy.Anchor = AnchorStyles.Top | AnchorStyles.Right;
comboBoxStrategy.DropDownStyle = ComboBoxStyle.DropDownList;
comboBoxStrategy.FormattingEnabled = true;
comboBoxStrategy.Items.AddRange(new object[] { "К центру", "К краю" });

View File

@ -25,7 +25,7 @@ public class MoveToBorder : AbstractStategy
{
return;
}
int diffX = objParams.ObjectMiddleHorizontal - FieldWidth;
int diffX = objParams.RightBorder - FieldWidth;
if (Math.Abs(diffX) > GetStep())
{
if (diffX > 0)
@ -37,7 +37,7 @@ public class MoveToBorder : AbstractStategy
MoveRight();
}
}
int diffY = objParams.ObjectMiddleVertical - FieldHeight;
int diffY = objParams.DownBorder - FieldHeight;
if (Math.Abs(diffY) > GetStep())
{
if (diffY > 0)