mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:08:10 +00:00
LibGUI: Move tooltip position up 4 pixels to prevent cursor pop-under
This commit is contained in:
parent
13406b83b1
commit
16d189e96b
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ void Application::request_tooltip_show()
|
|||
int const margin = 30;
|
||||
Gfx::IntPoint adjusted_pos = ConnectionToWindowServer::the().get_global_cursor_position();
|
||||
|
||||
adjusted_pos.translate_by(0, 18);
|
||||
adjusted_pos.translate_by(0, 14);
|
||||
|
||||
if (adjusted_pos.x() + m_tooltip_window->width() >= desktop_rect.width() - margin) {
|
||||
adjusted_pos = adjusted_pos.translated(-m_tooltip_window->width(), 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue