From 3325d5563986d1eb5caf9d34b7926f8a8459b008 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 18 Jan 2025 10:05:56 -0800 Subject: [PATCH] Fixed overlapped drawing in wordwrapped error mouseovers --- IDE/src/ui/HoverWatch.bf | 3 +++ IDE/src/ui/WatchPanel.bf | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/IDE/src/ui/HoverWatch.bf b/IDE/src/ui/HoverWatch.bf index 0597e6f8..a5bf5af7 100644 --- a/IDE/src/ui/HoverWatch.bf +++ b/IDE/src/ui/HoverWatch.bf @@ -1311,6 +1311,7 @@ namespace IDE.ui float addHeight = nameHeight - listViewItem.mSelfHeight; listViewItem.mSelfHeight = nameHeight; + listViewItem.mFreezeHeight = true; height += addHeight; } @@ -1322,6 +1323,8 @@ namespace IDE.ui height += GS!(2); listView.Resize(popupX, popupY, useWidth, height); + listView.mListSizeDirty = true; + listView.UpdateListSize(); ResizeWindow(); } diff --git a/IDE/src/ui/WatchPanel.bf b/IDE/src/ui/WatchPanel.bf index d1c6fc2b..dbeca7bb 100644 --- a/IDE/src/ui/WatchPanel.bf +++ b/IDE/src/ui/WatchPanel.bf @@ -1813,7 +1813,8 @@ namespace IDE.ui public bool mFindMismatch; public bool mChildHasMatch; public String mColoredLabel ~ delete _; - bool mWantRemoveSelf; + public bool mWantRemoveSelf; + public bool mFreezeHeight; public WatchRefreshButton mWatchRefreshButton; public ActionButton mActionButton; @@ -2935,7 +2936,8 @@ namespace IDE.ui wantHeight = 0; else wantHeight = watchListView.mFont.GetLineSpacing(); - if (mSelfHeight != wantHeight) + + if ((mSelfHeight != wantHeight) && (!mFreezeHeight)) { mSelfHeight = wantHeight; watchListView.mListSizeDirty = true;