You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a tool tip is partly outside of the screen, then it doesn't appear o the user.
To Reproduce
Use the example application provided below and move the mouse over a gray rectangle. Another way to reproduce is to move the window close to the bottom of the screen.
Expected behavior
Tool tips must work in any case.
Desktop (please complete the following information):
OS: Linux (Arch) with GNOME
Version: Bleeding edge
Additional context
The issue happens due to a Leave event sent to Avalonia, so the tool tip actually shows, but then closes immediately. Can be reproduced on 0.10.19 and 11.0.0 Preview 6.
publicclassApp:Application{publicoverridevoidOnFrameworkInitializationCompleted(){Styles.Add(newFluentTheme(newUri("avares://ControlCatalog/Styles")));Styles.Add(newStyle(s =>s.OfType<ToolTip>()){Setters={newSetter{Property=ToolTip.ClipToBoundsProperty,Value=false}}});if(ApplicationLifetimeisIClassicDesktopStyleApplicationLifetimedesktop)desktop.MainWindow=newWindow{Background=Brushes.White,Content=newRectangle{Height=16,Width=16,Margin=new(16),VerticalAlignment=VerticalAlignment.Bottom,Fill=Brushes.Gray,[ToolTip.TipProperty]="A few words here just to cause a line break."}};base.OnFrameworkInitializationCompleted();ToolTip.IsOpenProperty.Changed.Subscribe(c =>Console.WriteLine($"{c.NewValue}{DateTime.UtcNow}"));InputManager!.PreProcess.Subscribe(e =>{if(eisRawPointerEventArgsp&&p.TypeisRawPointerEventType.LeaveWindow)Console.WriteLine($"{p.Type}");});}publicstaticintMain(string[]args)=>AppBuilder.Configure<App>().UsePlatformDetect().UseSkia().StartWithClassicDesktopLifetime(args);}
YohDeadfall
changed the title
Tool tips don't work for maximized windows using X11 client
Tool tips don't work when it's partly off the screen on X11 client
Apr 28, 2023
Describe the bug
If a tool tip is partly outside of the screen, then it doesn't appear o the user.
To Reproduce
Use the example application provided below and move the mouse over a gray rectangle. Another way to reproduce is to move the window close to the bottom of the screen.
Expected behavior
Tool tips must work in any case.
Desktop (please complete the following information):
Additional context
The issue happens due to a
Leave
event sent to Avalonia, so the tool tip actually shows, but then closes immediately. Can be reproduced on0.10.19
and11.0.0 Preview 6
.Not maximized:
Maximized:
The text was updated successfully, but these errors were encountered: