-
Notifications
You must be signed in to change notification settings - Fork 696
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
MenuBar positions wrong in some situations #2558
Comments
@tig I thing you should avoiding use capital letters variables for parameters, like as this:
In this case if you have a property The main problem of this is the |
* Fixes #2558. MenuBar positions wrong in some situations. * Replacing Application.Top with Application.Current. * Fix typo. * Fix shortcut tag overlapping help on smaller width and add more unit test. * Resizing the console will close all opened menus. * Resize first the console before show ContextMenu. * Remove DriverFrame and DriverFrameOffset as not relevant. * Replace _frame with Frame as requested. * Fix xml document comment. * Compare equality between Dialog and Application.Top. * Move GetDriverLocationOffset and GetDriverLocationOffsetFromCurrent to the Menu.cs. * Fix merge errors. * Ensure menu is closed on click. * Force Height always be 1 to avoid mouse events respond even outside bounds. * Recovering UseSubMenusSingleFrame hope doesn't break again. * Fix bugs and made requested changes. --------- Co-authored-by: Tig <[email protected]>
Describe the bug
Running FileDialog with the following code results in a MenuBar that is mis positioned and has trailing corruption on right. I think it is to do with running using
Application.Run
directly without having aTop
yet? The issue does not manifest in theFileDialogExamples
scenario.Opening the MenuBar when running with the above code
Notice how the issue does not manifest in Scenario:
Opening the MenuBar when running in Scenario
The text was updated successfully, but these errors were encountered: