개정판 91efe37a
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
2929 | 2929 | |
2930 | 2930 |
CommentUserInfo selected = null; |
2931 | 2931 |
double dMinDiff = double.MaxValue; |
2932 |
Move tmp = new Move(); |
|
2933 | 2932 |
foreach (var item in Items) |
2934 | 2933 |
{ |
2935 |
Rect boundingBox = tmp.ItemRect(item);
|
|
2934 |
Rect boundingBox = item.ItemRect;
|
|
2936 | 2935 |
double dx = rect.X - boundingBox.X; |
2937 | 2936 |
double dy = rect.Y - boundingBox.Y; |
2938 | 2937 |
double dxx = rect.Right - boundingBox.Right; |
... | ... | |
2997 | 2996 | |
2998 | 2997 |
foreach (var item in Items) |
2999 | 2998 |
{ |
3000 |
Flag = move.control_Select(item, dragRect);
|
|
2999 |
Flag = SelectionSet.Instance.SelectControl(item, dragRect);
|
|
3001 | 3000 | |
3002 | 3001 |
if (Flag) |
3003 | 3002 |
{ |
내보내기 Unified diff