[debugger] IJPL-156831 Fix a possible problem because of changing scroll values outside EDT

GitOrigin-RevId: 035397945f130e749b35f88a5170b5e33ff49c62
This commit is contained in:
Alexey Merkulov
2024-09-11 01:06:11 +02:00
committed by intellij-monorepo-bot
parent 7105b4dae3
commit 3dda96cd67

View File

@@ -409,8 +409,10 @@ public final class XFramesView extends XDebugView {
if (event == SessionEvent.BEFORE_RESUME) {
if (DebuggerUIUtil.freezePaintingToReduceFlickering(myFramesList.getParent())) {
myScrollPane.getHorizontalScrollBar().setValue(0);
myScrollPane.getVerticalScrollBar().setValue(0);
ApplicationManager.getApplication().invokeAndWait(() -> {
myScrollPane.getHorizontalScrollBar().setValue(0);
myScrollPane.getVerticalScrollBar().setValue(0);
});
}
return;
}