Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not unhide find/replace overlay of other editors when resizing #2059 #2062

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

HeikoKlare
Copy link
Contributor

When multiple editors have an open find/replace overlay and a resize event happens (e.g., by minimizing/maximizing the window), the overlays of all editors are unhidden by accident. This was a result of introducing hide functionality to the overlay for the case that the target editor is too small to show the overlay, which conflicts with the hiding functionality for the case that an editor is invisible.

This change streamlines the visibility-related functionality of the find/replace overlay to be handled at a single place. In addition, all repositioning and resizing events are only processed when an overlay is actually visible. For invisible overlays, the repositioning and resizing is now performed when they become visible again. In addition, a unnecessary layouting and positionining operations when creating the overlay are removed as the same operations are performed again when opening the overlay anyway.

Fixes #2059

Copy link
Contributor

github-actions bot commented Jul 8, 2024

Test Results

 1 815 files  +  305   1 815 suites  +305   1h 32m 54s ⏱️ + 18m 29s
 7 665 tests ±    0   7 437 ✅ +    1  228 💤  -   1  0 ❌ ±0 
24 156 runs  +1 840  23 407 ✅ +1 639  749 💤 +201  0 ❌ ±0 

Results for commit 1e6af25. ± Comparison against base commit 0933929.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review July 8, 2024 20:59
@HeikoKlare HeikoKlare force-pushed the issue-2059 branch 2 times, most recently from e9f0314 to dbab727 Compare July 9, 2024 16:43
…ipse-platform#2059

When multiple editors have an open find/replace overlay and a resize
event happens (e.g., by minimizing/maximizing the window), the overlays
of all editors are unhidden by accident. This was a result of
introducing hide functionality to the overlay for the case that the
target editor is too small to show the overlay, which conflicts with the
hiding functionality for the case that an editor is invisible.

This change streamlines the visibility-related functionality of the
find/replace overlay to be handled at a single place. In addition, all
repositioning and resizing events are only processed when an overlay is
actually visible. For invisible overlays, the repositioning and resizing
is now performed when they become visible again. In addition, a
unnecessary layouting and positionining operations when creating the
overlay are removed as the same operations are performed again when
opening the overlay anyway.

Fixes eclipse-platform#2059
@HeikoKlare HeikoKlare merged commit 21f5812 into eclipse-platform:master Jul 9, 2024
16 checks passed
@HeikoKlare HeikoKlare deleted the issue-2059 branch July 9, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Find/Replace overlay: weird placement when unmaximizing
1 participant