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)
|
if (mParamInfo == null)
|
||||||
mParamInfo = new .();
|
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;
|
mParamInfo[new String(paramName)] = curDocStr;
|
||||||
lineHadContent = true;
|
lineHadContent = true;
|
||||||
}
|
}
|
||||||
|
@ -1010,14 +1010,17 @@ namespace IDE.ui
|
||||||
maxDocWidth = Math.Min(maxDocWidth, workspaceWidth - drawScreenX - GS!(8));
|
maxDocWidth = Math.Min(maxDocWidth, workspaceWidth - drawScreenX - GS!(8));
|
||||||
maxDocWidth = Math.Max(maxDocWidth, GS!(80));
|
maxDocWidth = Math.Max(maxDocWidth, GS!(80));
|
||||||
|
|
||||||
curY += font.GetLineSpacing() + GS!(4);
|
if (!docString.IsWhiteSpace)
|
||||||
if (g != null)
|
|
||||||
{
|
{
|
||||||
using (g.PushColor(0xFFC0C0C0))
|
curY += font.GetLineSpacing() + GS!(4);
|
||||||
docHeight = g.DrawString(docString, curX, curY, .Left, maxDocWidth, .Wrap);
|
if (g != null)
|
||||||
|
{
|
||||||
|
using (g.PushColor(0xFFC0C0C0))
|
||||||
|
docHeight = g.DrawString(docString, curX, curY, .Left, maxDocWidth, .Wrap);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
docHeight = font.GetWrapHeight(docString, maxDocWidth);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
docHeight = font.GetWrapHeight(docString, maxDocWidth);
|
|
||||||
|
|
||||||
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