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

Drawing issues with widgets #723

Open
edfloreshz opened this issue Nov 19, 2024 · 0 comments
Open

Drawing issues with widgets #723

edfloreshz opened this issue Nov 19, 2024 · 0 comments

Comments

@edfloreshz
Copy link
Contributor

I've encountering issues with widget::context_menu and widget::dropdown.

Findings:

Safe area will refer to the area where this issue is not happening.

  • The safe area is apparently being calculated depending on the window size.
  • The safe area's width is around 340 pixels when the window size is 1024 x 768.
  • The safe area's height is the window's height - the height of the context menu.
  • Removing buttons from the context menu increased the safe area's height due to the context menu's height shrinking.

Additional scenarios:

Navigation bar hidden

  • The dropdown popup is slightly off in the vertical (y-axis) position.
  • The context menu popup's horizontal (x-axis) position is correct when right-clicking near the left edge of the window, but it becomes misaligned when clicking in the center or right side.

Navigation bar shown

  • The dropdown popup appears significantly to the right of the expected position when the navigation bar is shown, this makes it not visible when the dropdown is placed in a context drawer.

Notes

This is breaking a lot applications updating to the latest version of libcosmic, perhaps this should be given a high priority.

Screenshtots

The right click was made on the left edge of the graph.
screenshot-2024-11-19-16-40-06

The window size was reduced and the navigation bar was hidden.
screenshot-2024-11-19-16-49-34

Related issues

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

No branches or pull requests

1 participant