Commit d27bdba
Fix #916 — Memory tab tooltip stops working after returning to tab
WPF Popup with PlacementTarget = chart can wedge when the user navigates
away from a TabItem mid-hover: TabControl unloads the parent without firing
MouseLeave on the chart, so _popup.IsOpen stays true with a stale anchor.
On return, OnMouseMove sets IsOpen = true but it is already true — the
assignment is a no-op and the popup never re-anchors or appears.
Memory tab is the most visible victim because it has 6 charts inside a
nested TabControl, multiplying the chance of a wedged popup, but the bug
is general to ChartHoverHelper.
- Force _popup.IsOpen = false on chart Loaded / Unloaded / IsVisibleChanged.
- In OnMouseMove, toggle IsOpen off then on so WPF re-evaluates placement
even when the popup believes it is already open.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7cc2265 commit d27bdba
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
| |||
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
64 | 77 | | |
65 | 78 | | |
66 | 79 | | |
67 | 80 | | |
68 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
69 | 91 | | |
70 | 92 | | |
71 | 93 | | |
| |||
207 | 229 | | |
208 | 230 | | |
209 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
210 | 237 | | |
211 | 238 | | |
212 | 239 | | |
| |||
0 commit comments