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:
parent
e1292f3206
commit
3253bb40ac
2 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue