mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed autocomplete flashing
This commit is contained in:
parent
958fc30310
commit
5d55409841
1 changed files with 4 additions and 4 deletions
|
@ -512,9 +512,6 @@ namespace IDE.ui
|
||||||
|
|
||||||
public void UpdateWidth()
|
public void UpdateWidth()
|
||||||
{
|
{
|
||||||
if (mWidgetWindow == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
int firstEntry = (int)(-(int)mScrollContent.mY / mItemSpacing);
|
int firstEntry = (int)(-(int)mScrollContent.mY / mItemSpacing);
|
||||||
int lastEntry = (int)((-(int)mScrollContent.mY + mScrollContentContainer.mHeight) / mItemSpacing);
|
int lastEntry = (int)((-(int)mScrollContent.mY + mScrollContentContainer.mHeight) / mItemSpacing);
|
||||||
|
|
||||||
|
@ -536,6 +533,8 @@ namespace IDE.ui
|
||||||
mMaxWidth = Math.Max(mMaxWidth, entryWidth);
|
mMaxWidth = Math.Max(mMaxWidth, entryWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mWidgetWindow == null)
|
||||||
|
return;
|
||||||
|
|
||||||
float docWidth = 0.0f;
|
float docWidth = 0.0f;
|
||||||
float docHeight = 0;
|
float docHeight = 0;
|
||||||
|
@ -1295,7 +1294,7 @@ namespace IDE.ui
|
||||||
var textIdx;
|
var textIdx;
|
||||||
|
|
||||||
// This makes typing '..' NOT move the window after pressing the second '.'
|
// This makes typing '..' NOT move the window after pressing the second '.'
|
||||||
if (mTargetEditWidget.Content.SafeGetChar(textIdx - 2) == '.')
|
if (mTargetEditWidget.Content.SafeGetChar(textIdx - 2) == '.')
|
||||||
{
|
{
|
||||||
textIdx--;
|
textIdx--;
|
||||||
}
|
}
|
||||||
|
@ -2209,6 +2208,7 @@ namespace IDE.ui
|
||||||
}
|
}
|
||||||
contentHeight += GS!(8);
|
contentHeight += GS!(8);
|
||||||
mAutoCompleteListWidget.ResizeContent(windowWidth, contentHeight, wantScrollbar);
|
mAutoCompleteListWidget.ResizeContent(windowWidth, contentHeight, wantScrollbar);
|
||||||
|
//mAutoCompleteListWidget.UpdateWidth();
|
||||||
if ((mInsertStartIdx != -1) && (!IsInPanel()))
|
if ((mInsertStartIdx != -1) && (!IsInPanel()))
|
||||||
{
|
{
|
||||||
UpdateWindow(ref mListWindow, mAutoCompleteListWidget, mInsertStartIdx, windowWidth, windowHeight);
|
UpdateWindow(ref mListWindow, mAutoCompleteListWidget, mInsertStartIdx, windowWidth, windowHeight);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue