Hello,
I have problem with completion window location when vertical scroll of SyntaxEditor is not at start position. In that case position of completion window is at the top of control, in same case, somewhere else. I reproduced such behavior on minimal example which I am sharing with you right now.
using
System.Windows.Forms;
using
Telerik.WinForms.Controls.SyntaxEditor.UI.IntelliPrompt.Completion;
namespace
WindowsFormsApp1
{
public
partial
class
Form1 : Form
{
public
Form1()
{
InitializeComponent();
ICompletionInfoCollection completionInfoCollection =
new
CompletionInfoCollection
{
new
CompletionInfo(
"AAA"
,
"A description."
),
new
CompletionInfo(
"BBB"
,
"B description."
),
new
CompletionInfo(
"CCC"
,
"C description."
)
};
var completionListWindow =
this
.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.CompletionListWindow;
completionListWindow.Presenter.CompletionListItems = completionInfoCollection;
}
private
void
radSyntaxEditor1_DocumentContentChanged(
object
sender, Telerik.WinForms.SyntaxEditor.Core.Text.TextContentChangedEventArgs e)
{
Telerik.WinForms.Controls.SyntaxEditor.UI.CompletionListPopup completionListWindow =
this
.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.CompletionListWindow;
completionListWindow.Show();
completionListWindow.Refresh();
}
}
}
As you can see in the images, in the first two cases everything is ok, but in the third image, when the vertical scroll is not at the start position (moved a little bit), the completion window has a completely wrong place.
Thank you for your answers.