p0deje / Maccy

Lightweight clipboard manager for macOS
https://maccy.app
MIT License
11.94k stars 512 forks source link

Items in the panel being covered by pinned items on panel show up #862

Closed AnotiaWang closed 1 week ago

AnotiaWang commented 1 week ago

Before Submitting Your Bug Report

Maccy Version (see 'About' window)

2.0.0.beta.13

macOS Version

Sequoia 15.0 Beta(24A5331b)

Maccy Settings

{
    "KeyboardShortcuts_delete" = "{\\"carbonModifiers\\":2048,\\"carbonKeyCode\\":51}";
    "KeyboardShortcuts_pin" = "{\\"carbonKeyCode\\":35,\\"carbonModifiers\\":2048}";
    "KeyboardShortcuts_popup" = "{\\"carbonModifiers\\":768,\\"carbonKeyCode\\":8}";
    "LaunchAtLogin__hasMigrated" = 1;
    "NSStatusItem Preferred Position Item-0" = 554;
    "NSStatusItem Visible Item-0" = 1;
    "NSStatusItem Visible Item-1" = 0;
    "NSWindow Frame SUStatusFrame" = "535 589 400 134 0 0 1470 919 ";
    "NSWindow Frame SUUpdateAlert" = "446 409 620 398 0 0 1512 944 ";
    "NSWindow Frame com.sindresorhus.Preferences.FrameAutosaveName" = "101 103 528 419 0 0 1470 919 ";
    "NSWindow Frame com.sindresorhus.Settings.FrameAutosaveName" = "-1013 676 510 473 -1512 314 1512 944 ";
    SUEnableAutomaticChecks = 0;
    SUHasLaunchedBefore = 1;
    SULastCheckTime = "2024-09-05 06:56:17 +0000";
    SUSendProfileInfo = 0;
    WebKitDefaultFontSize = 13;
    WebKitJavaScriptEnabled = 0;
    WebKitPluginsEnabled = 0;
    WebKitStandardFont = "-apple-system-font";
    WebKitUserStyleSheetEnabledPreferenceKey = 1;
    WebKitUserStyleSheetLocationPreferenceKey = "/Applications/Maccy.app/Contents/Frameworks/Sparkle.framework/Resources/ReleaseNotesColorStyle.css";
    enabledPasteboardTypes =     (
        "public.html",
        "public.png",
        "public.tiff",
        "public.utf8-plain-text",
        "public.file-url",
        "public.rtf"
    );
    historySize = 1000;
    ignoreAllAppsExceptListed = 0;
    ignoredPasteboardTypes =     (
        "com.typeit4me.clipping",
        "de.petermaurer.TransientPasteboardType",
        "net.antelle.keeweb",
        "Pasteboard generator type",
        "com.agilebits.onepassword"
    );
    maxMenuItemLength = 56;
    menuIcon = maccy;
    migrations =     {
        "2020-04-25-allow-custom-ignored-types" = 1;
        "2020-06-19-use-keyboardshortcuts" = 1;
        "2020-09-01-ignore-keeweb" = 1;
        "2021-02-20-allow-to-customize-supported-types" = 1;
        "2021-06-28-add-title-to-history-item" = 1;
        "2021-10-16-remove-dynamic-pasteboard-types" = 1;
        "2022-08-01-rename-suppress-clear-alert" = 1;
        "2022-11-14-add-html-rtf-to-supported-types" = 1;
        "2023-01-22-add-regexp-search-mode" = 1;
        "2024-07-01-version-2" = 1;
    };
    pasteByDefault = 0;
    playSounds = 0;
    previewDelay = 1500;
    removeFormattingByDefault = 0;
    searchMode = exact;
    showFooter = 1;
    showInStatusBar = 1;
    showRecentCopyInMenuBar = 0;
    showSearch = 1;
    showTitle = 1;
    sortBy = lastCopiedAt;
    suppressClearAlert = 0;
    windowPosition = "[0.6613756613756614,0.8135593220338984]";
    windowSize = "[400,800]";
}

Description

When there're pinned items and many other items (more than 1 page) in the panel, and before closing the panel it's scrolled from the top, the next time you open the panel, some items will be covered by pinned ones.

Steps to Reproduce

  1. Copy several of times to fill the panel, making the list scrollable
  2. Open the panel
  3. Pin some items
  4. Scroll down a bit
  5. Close the panel
  6. Open the panel again

Expected behavior: The first unpinned item should be selected and visible

Actual behavior: The first unpinned item is selected but not visible, which may be confusing. The actual visible item is the n+1th one (here n is the amount of pinned items)

p0deje commented 1 week ago

Fixed in beta 14