From a1d1e45b26645c3234bb1046e13dd59adb18da1f Mon Sep 17 00:00:00 2001 From: vczh Date: Tue, 7 Feb 2023 23:23:55 -0800 Subject: [PATCH] Update import --- Import/GacUI.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Import/GacUI.cpp b/Import/GacUI.cpp index 565d537a..2aa86f88 100644 --- a/Import/GacUI.cpp +++ b/Import/GacUI.cpp @@ -11653,7 +11653,12 @@ FreeHeightItemArranger vint height = viewBounds.Height(); Point location = viewBounds.LeftTop(); - if (offset > top) + + if (offset >= top && offset + height <= bottom) + { + break; + } + else if (offset > top) { location.y = top; } @@ -11829,7 +11834,11 @@ FixedHeightItemArranger } Point location = viewBounds.LeftTop(); - if (top < viewBounds.Top()) + if (viewBounds.y1 >= top && viewBounds.y2 <= bottom) + { + break; + } + else if (top < viewBounds.Top()) { location.y = top; }