1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed autocomplete doc width on multimon

This commit is contained in:
Brian Fiete 2025-02-03 11:29:30 -08:00
parent e1292f3206
commit 3253bb40ac
2 changed files with 3 additions and 3 deletions

View file

@ -561,8 +561,8 @@ namespace IDE.ui
int drawScreenX = (.)(mWidgetWindow.mX + mWidth - mDocWidth);
gApp.GetWorkspaceRectFrom(drawScreenX, mWidgetWindow.mY, 0, 0, var workspaceX, var workspaceY, var workspaceWidth, var workspaceHeight);
float maxWidth = workspaceWidth - drawScreenX - GS!(8);
float newDocWidth = Math.Min(docWidth, workspaceWidth - drawScreenX - GS!(8));
float maxWidth = workspaceWidth - (drawScreenX - workspaceX) - GS!(8);
float newDocWidth = Math.Min(docWidth, workspaceWidth - (drawScreenX - workspaceX) - GS!(8));
newDocWidth = Math.Max(newDocWidth, GS!(80));
if ((docWidth > maxWidth) || (lineCount > 1))
{

View file

@ -2042,7 +2042,7 @@ namespace IDE.ui
let width = GetValueEditWidth(subItem);
propEntry.mEditInsets.mRight = GS!(22);
browseButton.mLabelYOfs = GS!(-2);
browseButton.Resize(width - GS!(21), GS!(1), GS!(20), subItem.mHeight - 2);
browseButton.Resize(width - GS!(21), GS!(1), GS!(20), Math.Max(subItem.mHeight - 2, 0));
});
subItem.AddWidget(browseButton);