Skip to content

Popup shrinks and clips on 100% monitor with a 150% laptop display in v1.6.0 #112

Open

Description

@MatheusFS-dev

Popup shrinks and clips on 100% monitor with a 150% laptop display in v1.6.0

This appears related to #84, but it still happens in v1.6.0.

Environment

  • Windows 11 Pro, build 26200
  • AppGroup 1.6.0, product version 1.6.0+2e85afae30011fc6f2e4e3f03e5772abf00f0530
  • Main external monitor: ASUS XG27ACSR, 2560 x 1440, 100% scaling, desktop bounds (0, 0) to (2560, 1440)
  • Laptop display: B160QAN03.Y, 2560 x 1600, 150% scaling, desktop bounds (2560, -67) to (5120, 1533)
  • Taskbar shown on both displays
  • No AppGroup DPI compatibility override found

Reproduction

  1. Use the extended desktop arrangement above.
  2. Create a group with five apps, three columns, Default layout, no header, and no labels.
  3. Open its taskbar popup on the external monitor.

The popup works on the laptop display. On the external monitor, it shows two columns, clips the lower row, and does not show all five apps in the visible area.

Measurements

A read-only Win32 probe, with its thread set to PerMonitorV2, captured the visible broken popup:

GetDpiForWindow: 96
Window position: (572, 1270)
Window size: 116 x 77 physical pixels
Client size: 100 x 69 physical pixels

For this group, PopupWindow.xaml.cs at the installed build commit computes a requested size of 174 x 116 pixels at 100% scaling:

width  = 3 * (40 + 2 * 4) + 30 = 174
height = ceil(5 / 3) * (40 + 2 * 4) + 20 = 116

The measured size is approximately two-thirds of that calculated size, matching the 96/144 DPI ratio. A separate measurement found the hidden popup at 144 DPI while the main window was at 96 DPI.

Already tried

  • Fully quit and reopen AppGroup
  • Disable both window and content slide animations
  • Move the main window to the external monitor before quitting and reopening

None resolved the issue. All five shortcuts and their cached icons exist.

Possible cause, not yet confirmed with in-process tracing

UpdateWindowSize calculates the destination-monitor size, calls PositionWindowOffScreen, resizes, then repositions the popup. PositionWindowOffScreenBelow can also move the window onto the laptop display in this arrangement. This may trigger another DPI resize after the explicitly calculated dimensions have been applied.

Please check whether final sizing needs to occur after moving to the destination monitor and after the XAML DPI transition has completed. The wrapping grid may then need a layout refresh. The primary-display height limit also uses DisplayArea.Primary rather than the destination monitor.

Related issue: #84

Activity

  1. MatheusFS-dev commented on Oct 31, 2026

    @MatheusFS-dev
    Author

    With problem:
    Image

    Correct:
    Image

  2. sandwich commented on Nov 13, 2026

    @sandwich

    I also have this problem, but from the other direction - I'm on a desktop with four monitors: three of them are various sizes and 100% scaling, while the fourth is a very high-PPI, portable monitor I run at 200% scaling.

    The app group is pinned to one of my 100% monitors. With the portable monitor plugged in, I get a very similar group appearance:

    image

    When I unplug the portable monitor, it looks great:

    image

    Upon further testing:

    • The improperly-scaled window changes sizes depending on the PPI scaling of my portable monitor.
    • My taskbar is along the bottom, and my portable monitor is positioned (physically and virtually) beneath that. When I trigger a group, I can see it appearing ON my portable monitor first, before sliding up into view where it should be, above the windows taskbar.
  3. holtzp commented on Nov 15, 2026

    @holtzp

    I'm experiencing the same thing with v1.6.0. I've got two 1440p monitors at 100% scaling and a 4K monitor at 300% scaling. The 4K monitor shows the app group pop-up correctly:

    Screenshot 2026-11-15 013501

    This is what I'm seeing instead on the 1440p monitors:

    Screenshot 2026-11-15 015400

    I've reverted to v1.5.0, which works correctly on my 1440p monitors, but when I click the app group on the 4K monitor the scaling is so off that the pop-up appears on the next monitor instead.

  4. AmitBerg commented on Nov 15, 2026

    @AmitBerg

    I hit the same bug and traced it to the root cause. Details and a suggested fix are below.

    Environment

    • App Group v1.6.0
    • Windows 11 (build 26300)
    • 3 monitors: primary at 125% scaling, secondary at 100%

    Symptom

    A group with 3 items and groupCol: 3 shows only 2 icons in the popup when opened on the 100% monitor. The third item wraps to a second row that is cut off, and a vertical scrollbar appears. Toggling labels or header on/off doesn't help.

    Measured with UI Automation on the 100% monitor: popup window is 151 px wide, the item list is 96 px (2 × 48), the third ListItem has an empty bounding rectangle.

    Cause

    In PopupWindow.InitializeWindow():

    NativeMethods.POINT? dpiTargetPoint = _parentPopup != null
        ? _lastClickPos
        : (_receivedCursorPos ?? (...GetCursorPos...));
    
    var displayInfo = GetDisplayInformation(dpiTargetPoint);   // DPI of the monitor under the cursor (100%)
    float scaleFactor = displayInfo.Item1;
    ...
    NativeMethods.PositionWindowOffScreen(this.GetWindowHandle()); // window is parked near the PRIMARY monitor (125%)
    _windowHelper.SetSize(finalWidth, finalHeight);                // size computed for 100%, applied at 125%

    The size is computed with the cursor monitor's scale factor (1.0) but applied while the window sits at the off-screen park position, which belongs to the primary monitor (1.25). When the window is then moved to the target monitor, Windows rescales it for the DPI change (×0.8), so it ends up 20% too small:

    (3 × 48 × 1.0 + 45) / 1.25 ≈ 151 px, which matches the measured width.

    This also explains the reports above. The popup comes out too small on a 100% monitor whenever the park position, (0, primaryWorkAreaHeight + 100), falls on a higher-DPI monitor (or the primary is the higher-DPI one). It comes out too big in the opposite case. It's also why the popup can briefly be seen on a monitor placed below the primary.

    A second, smaller issue: the padding constants are added after scaling and are not DPI-scaled themselves:

    int finalWidth  = scaledWidth + 30;
    int finalHeight = scaledHeight + 20;

    Suggested fix

    Use the DPI of the monitor the window is on when SetSize runs, not the cursor's monitor. For example, park the window first and then measure:

    NativeMethods.PositionWindowOffScreen(this.GetWindowHandle());
    var displayInfo = GetDisplayInformation();   // null => MonitorFromWindow
    float scaleFactor = displayInfo.Item1;
    ...
    int finalWidth  = (int)((dynamicWidth  + 30) * scaleFactor);
    int finalHeight = (int)((dynamicHeight + 20) * scaleFactor);  // plus header/card extras, scaled likewise
    _windowHelper.SetSize(finalWidth, finalHeight);

    The subsequent move to the target monitor then scales the window correctly through the normal WM_DPICHANGED handling.

    Verified workaround

    I confirmed this locally by binary-patching AppGroup.dll (v1.6.0) so that GetDisplayInformation always takes the MonitorFromWindow branch, and by increasing the width padding constant from 30 to 45. After that, the popup shows all 3 items in one row on both the 100% and 125% monitors, whether opened from the taskbar or the command line.

  5. iandiv commented on Nov 16, 2026

    @iandiv
    Owner

    Hi everyone, sorry for the late reply, Ive been busy with work.
    Thanks for the detailed reports, especially @AmitBerg for identifying the likely cause. I will investigate this and work on a fix for the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions