Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with RelativeInsertPosition enum definition #60

Closed
akaztp opened this issue Apr 13, 2013 · 2 comments
Closed

Problem with RelativeInsertPosition enum definition #60

akaztp opened this issue Apr 13, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@akaztp
Copy link

akaztp commented Apr 13, 2013

Enumeration of RelativeInsertPosition on DropInfo.cs file should be set to powers of 2 since it is a Flags enumeration.
Now is:
[Flags]
public enum RelativeInsertPosition
{
BeforeTargetItem = 0,
AfterTargetItem = 1,
TargetItemCenter = 2
}

which makes "bef" become true on:

RelativeInsertPosition pos = RelativeInsertPosition.AfterTargetItem;
bool bef = pos.HasFlag(RelativeInsertPosition.BeforeTargetItem);

On a local version of 0.1.3.6, I corrected the enumeration to:

[Flags]
public enum RelativeInsertPosition
{
    BeforeTargetItem = 1,
    AfterTargetItem = 2,
    TargetItemCenter = 4
}

And then it worked correctly.

@punker76
Copy link
Owner

punker76 commented Aug 6, 2013

can't find any problem with the current solution

@punker76
Copy link
Owner

punker76 commented Aug 1, 2016

@akaztp Should be fixed with 3b0995c

@punker76 punker76 closed this as completed Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants