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 committed Jul 1, 2024
1 parent 4674cdf commit c16001e
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 c16001e

Please sign in to comment.