Skip to content

Commit

Permalink
Find/Replace overlay: improve reaction to windows resizing
Browse files Browse the repository at this point in the history
The positioning of the overlay to it's texteditor happens now
asynchronously, improving misunderstandings in positioning.

fixes #1992
  • Loading branch information
Wittmaxi authored and HeikoKlare committed Jul 4, 2024
1 parent a3540d7 commit 08d06f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ private void toggleToolItem(ToolItem toolItem) {
private ControlListener shellMovementListener = new ControlListener() {
@Override
public void controlMoved(ControlEvent e) {
positionToPart();
getShell().getDisplay().asyncExec(() -> positionToPart());
}

@Override
public void controlResized(ControlEvent e) {
positionToPart();
getShell().getDisplay().asyncExec(() -> positionToPart());
}
};

Expand Down

0 comments on commit 08d06f9

Please sign in to comment.