editor: Fix signature help popover goes off screen (#28566)

Closes #27731

Uses similar logic as other popovers for layouting signature help
popover.

Release Notes:

- Fixed case where signature help popover goes off the screen.
This commit is contained in:
Smit Barmase
2025-04-11 14:50:42 +05:30
committed by GitHub
parent d4736a5427
commit bd4c9b45b6
2 changed files with 41 additions and 26 deletions
+1
View File
@@ -30,6 +30,7 @@ pub const HOVER_REQUEST_DELAY_MILLIS: u64 = 200;
pub const MIN_POPOVER_CHARACTER_WIDTH: f32 = 20.;
pub const MIN_POPOVER_LINE_HEIGHT: f32 = 4.;
pub const POPOVER_RIGHT_OFFSET: Pixels = px(8.0);
pub const HOVER_POPOVER_GAP: Pixels = px(10.);
/// Bindable action which uses the most recent selection head to trigger a hover