mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 05:14:10 +02:00
Param doc fix
This commit is contained in:
parent
82fed8ea6f
commit
7dc9fb699c
1 changed files with 10 additions and 7 deletions
|
@ -115,7 +115,7 @@ namespace IDE.ui
|
|||
{
|
||||
if (mParamInfo == null)
|
||||
mParamInfo = new .();
|
||||
curDocStr = new String(pragma, splitEnum.MatchPos + 1);
|
||||
curDocStr = new String(pragma, Math.Min(splitEnum.MatchPos + 1, pragma.Length));
|
||||
mParamInfo[new String(paramName)] = curDocStr;
|
||||
lineHadContent = true;
|
||||
}
|
||||
|
@ -1010,6 +1010,8 @@ namespace IDE.ui
|
|||
maxDocWidth = Math.Min(maxDocWidth, workspaceWidth - drawScreenX - GS!(8));
|
||||
maxDocWidth = Math.Max(maxDocWidth, GS!(80));
|
||||
|
||||
if (!docString.IsWhiteSpace)
|
||||
{
|
||||
curY += font.GetLineSpacing() + GS!(4);
|
||||
if (g != null)
|
||||
{
|
||||
|
@ -1018,6 +1020,7 @@ namespace IDE.ui
|
|||
}
|
||||
else
|
||||
docHeight = font.GetWrapHeight(docString, maxDocWidth);
|
||||
}
|
||||
|
||||
extWidth = Math.Max(extWidth, Math.Min(font.GetWidth(docString), maxDocWidth) + GS!(48));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue