Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit ec21a54

Browse files
committed
[Ide][Completion] Optimize right side description size and position
1 parent 02821e7 commit ec21a54

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/RoslynSymbolCompletionData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public RoslynSymbolCompletionData (ICompletionDataKeyHandler keyHandler, RoslynC
9292
if (returnType == null)
9393
return null;
9494
try {
95-
return "<span font='Sans' size='x-small'>" + GLib.Markup.EscapeText (SafeMinimalDisplayString (returnType, factory.SemanticModel, ext.Editor.CaretOffset)) + "</span>";
95+
return "<span font='Sans' size='small'>" + GLib.Markup.EscapeText (SafeMinimalDisplayString (returnType, factory.SemanticModel, ext.Editor.CaretOffset)) + "</span>";
9696
} catch (Exception e) {
9797
LoggingService.LogError ("Format error.", e);
9898
}

main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ListWidget.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,10 @@ protected override bool OnExposeEvent (Gdk.EventExpose args)
598598

599599
int w, h;
600600
layout.GetPixelSize (out w, out h);
601-
const int padding = 8;
602-
w = Math.Min (w, Allocation.Width - textXPos - textW - padding);
601+
const int leftpadding = 8;
602+
const int rightpadding = 3;
603+
w += rightpadding;
604+
w = Math.Min (w, Allocation.Width - textXPos - textW - leftpadding);
603605
wi += w;
604606
typos = h < rowHeight ? ypos + (rowHeight - h) / 2 : ypos;
605607
if (scalef <= 1.0)

0 commit comments

Comments
 (0)