Browse Source

ported path from fidalgo revision 2003

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@184 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Markus Palme 21 years ago
parent
commit
607c95438f
  1. 9
      src/Main/Base/Project/Src/TextEditor/Commands/GenerateCodeCommand.cs

9
src/Main/Base/Project/Src/TextEditor/Commands/GenerateCodeCommand.cs

@ -147,7 +147,14 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Commands @@ -147,7 +147,14 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Commands
textView.DrawingPosition.X,
(int)((1 + physicalline) * textView.FontHeight) -
textArea.VirtualTop.Y - 1 + textView.DrawingPosition.Y);
Location = textEditorControl.ActiveTextAreaControl.TextArea.PointToScreen(visualPos);
Point tempLocation = textEditorControl.ActiveTextAreaControl.TextArea.PointToScreen(visualPos);
tempLocation.Y = (tempLocation.Y + Height) > Screen.FromPoint(tempLocation).WorkingArea.Bottom ?
Screen.FromPoint(tempLocation).WorkingArea.Bottom - Height : tempLocation.Y;
tempLocation.X = (tempLocation.X + Width) > Screen.FromPoint(tempLocation).WorkingArea.Right ?
Screen.FromPoint(tempLocation).WorkingArea.Right - Width : tempLocation.X;
Location = tempLocation;
StartPosition = FormStartPosition.Manual;

Loading…
Cancel
Save