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

Contextmenus on dpi-aware application have a wrong scaling #262

Closed
moby42 opened this issue Apr 11, 2021 · 1 comment
Closed

Contextmenus on dpi-aware application have a wrong scaling #262

moby42 opened this issue Apr 11, 2021 · 1 comment

Comments

@moby42
Copy link

moby42 commented Apr 11, 2021

Situation : multimonitor setup:

  • monitor 1 : 4k with 125% scaling
  • monitor 2 : HD with 100% scaling
    Application runs on second monitor : the contextmenu's on the document & anchorable's Tab are too large (scaled on 125%?).
    I narrowed it don toe the DropDownControlArea class where the DropDowncontextMenu.PlacementTarget is null. Since the target is not defined, wpf assumes the scaling of the main monitor (125%) and shows the contextmenu far too large.

Include a patch file with the fix

AvalonDock-DropDownArea-DpiAware-fix.patch.txt

Dirkster99 added a commit that referenced this issue Apr 11, 2021
@Dirkster99
Copy link
Owner

Hi Thanks for your contribution. I was not able to replicate your problem although I have similar monitor settings but I applied your fix since it does not seem to introduce new issues for me - please test the mater branch and let me know if this does not work for you...

Thanx Dirk

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

2 participants