mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
fix autocomplete param position for multiline doc strings
This commit is contained in:
parent
e9a2851095
commit
7cf64ac9a2
1 changed files with 6 additions and 2 deletions
|
@ -1179,14 +1179,18 @@ namespace IDE.ui
|
||||||
|
|
||||||
if (!docString.IsWhiteSpace)
|
if (!docString.IsWhiteSpace)
|
||||||
{
|
{
|
||||||
curY += font.GetLineSpacing() + GS!(4);
|
|
||||||
if (g != null)
|
if (g != null)
|
||||||
{
|
{
|
||||||
|
let docY = curY + font.GetLineSpacing() + GS!(4);
|
||||||
|
|
||||||
using (g.PushColor(gApp.mSettings.mUISettings.mColors.mAutoCompleteDocText))
|
using (g.PushColor(gApp.mSettings.mUISettings.mColors.mAutoCompleteDocText))
|
||||||
docHeight = g.DrawString(docString, curX, curY, .Left, maxDocWidth, .Wrap);
|
docHeight = g.DrawString(docString, curX, docY, .Left, maxDocWidth, .Wrap);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
docHeight = font.GetWrapHeight(docString, maxDocWidth);
|
docHeight = font.GetWrapHeight(docString, maxDocWidth);
|
||||||
|
|
||||||
|
curY += docHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
extWidth = Math.Max(extWidth, Math.Min(font.GetWidth(docString), maxDocWidth) + GS!(48));
|
extWidth = Math.Max(extWidth, Math.Min(font.GetWidth(docString), maxDocWidth) + GS!(48));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue