Browse Source

When displaying xml namespaces the autocompletion list now resizes to fit the longest string.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@362 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 20 years ago
parent
commit
eb5337d562
  1. 2
      src/AddIns/DisplayBindings/XmlEditor/Project/Src/CodeCompletionWindow.cs

2
src/AddIns/DisplayBindings/XmlEditor/Project/Src/CodeCompletionWindow.cs

@ -283,7 +283,7 @@ namespace ICSharpCode.XmlEditor @@ -283,7 +283,7 @@ namespace ICSharpCode.XmlEditor
for(int i = 0; i < completionData.Length; ++i)
{
float itemWidth = graphics.MeasureString(completionData[i].Text[0].ToString(), codeCompletionListView.Font).Width;
float itemWidth = graphics.MeasureString(completionData[i].Text.ToString(), codeCompletionListView.Font).Width;
if(itemWidth > width) {
width = itemWidth;
}

Loading…
Cancel
Save