Skip to content

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

@moby42

Description

@moby42

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions