mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Better fix for invokeWidget with no selectIdx
This commit is contained in:
parent
89bf475045
commit
9d533f865f
1 changed files with 9 additions and 3 deletions
|
@ -933,6 +933,9 @@ namespace IDE.ui
|
||||||
mWidth = extWidth;
|
mWidth = extWidth;
|
||||||
mHeight = extHeight;
|
mHeight = extHeight;
|
||||||
|
|
||||||
|
if ((mWidth <= 0) || (mHeight <= 0))
|
||||||
|
return;
|
||||||
|
|
||||||
if (resizeWindow)
|
if (resizeWindow)
|
||||||
{
|
{
|
||||||
if (mOwnsWindow)
|
if (mOwnsWindow)
|
||||||
|
@ -2039,7 +2042,7 @@ namespace IDE.ui
|
||||||
if (mInvokeWidget != null)
|
if (mInvokeWidget != null)
|
||||||
{
|
{
|
||||||
prevInvokeSelect = mInvokeWidget.mSelectIdx;
|
prevInvokeSelect = mInvokeWidget.mSelectIdx;
|
||||||
if ((mInvokeWidget.mEntryList.Count > 0) && (!mInvokeSrcPositions.IsEmpty))
|
if ((mInvokeWidget.mEntryList.Count > 0) && (!mInvokeSrcPositions.IsEmpty) && (mInvokeWidget.mSelectIdx >= 0))
|
||||||
{
|
{
|
||||||
if (IsInPanel())
|
if (IsInPanel())
|
||||||
{
|
{
|
||||||
|
@ -2049,8 +2052,11 @@ namespace IDE.ui
|
||||||
{
|
{
|
||||||
mInvokeWidget.mOwnsWindow = true;
|
mInvokeWidget.mOwnsWindow = true;
|
||||||
mInvokeWidget.ResizeContent(false);
|
mInvokeWidget.ResizeContent(false);
|
||||||
UpdateWindow(ref mInvokeWindow, mInvokeWidget, mInvokeSrcPositions[0], (int32)mInvokeWidget.mWidth, (int32)mInvokeWidget.mHeight);
|
if ((mInvokeWidget.mWidth > 0) && (mInvokeWidget.mHeight > 0))
|
||||||
mInvokeWidget.ResizeContent(true);
|
{
|
||||||
|
UpdateWindow(ref mInvokeWindow, mInvokeWidget, mInvokeSrcPositions[0], (int32)mInvokeWidget.mWidth, (int32)mInvokeWidget.mHeight);
|
||||||
|
mInvokeWidget.ResizeContent(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue