瀏覽代碼

Fixed overlapped drawing in wordwrapped error mouseovers

Brian Fiete 8 月之前
父節點
當前提交
3325d55639
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 3 0
      IDE/src/ui/HoverWatch.bf
  2. 4 2
      IDE/src/ui/WatchPanel.bf

+ 3 - 0
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();
         }
 

+ 4 - 2
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;