Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

P: SDK/ combo_box scroller doesn't obey Mac Os setting "Show scroll bars : Always"

Advocate ,
Apr 10, 2025 Apr 10, 2025

Steps to reproduce:

Mac OS

 

1. Settings > Appearance > Show scroll bars : Always


Screenshot 2025-04-10 at 22.10.41.png

2. Run this code in a script OR in a Plug-in 

-- Import required Lightroom modules
local LrDialogs = import 'LrDialogs'
local LrView = import 'LrView'
local LrBinding = import 'LrBinding'
local LrTasks = import 'LrTasks'

-- Function to show a simple combo box dialog inside an async task
local function showSimpleComboBoxAsync()
    LrTasks.startAsyncTask(function()

        local Ui = LrView.osFactory()

        -- Create simple property table (no context)
        local props = {
            selectedValue = "1"  -- Default value
        }

        -- List of numbers 1 to 10 for the combo box
        local numberOptions = {}
        for i = 1, 10 do
            table.insert(numberOptions, tostring(i))
        end

        -- Build UI: label + combo box
        local dialog = Ui:view({
            bind_to_object = props,

            Ui:row {
                Ui:static_text {
                    title = "Pick a number:",
                },
                Ui:combo_box {
                    value = LrView.bind("selectedValue"),
                    items = numberOptions,
                    width_in_chars = 5,
                    fill_horizontal = 1,
                },
            },
        })

        -- Show dialog
        local dialog = LrDialogs.presentModalDialog {
            title = "Bug combo_box scroller",
            contents = dialog,
            actionVerb = "OK",
            cancelVerb = "Cancel",
            props = props,
        }

        -- Handle result
        if dialog == "ok" then
            LrDialogs.message("You chose:", props.selectedValue, "info")
        end

    end)
end

-- Run it
showSimpleComboBoxAsync()


3. Reveal the dropdown menu.

4. Wait a sec

Actual Results: The scrollbar in the dropdown menu disappears soon after disrespecting the Os settings to ALWAYS show.

Expected Results: The scrollbar DOES NOT disappear.



Bug Investigating
TOPICS
macOS , SDK , Windows
323
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Pinned Reply

Adobe Employee , Apr 14, 2025 Apr 14, 2025

Thanks @C.Cella. I've logged this with the SDK folks to investigate. 

@johnrellis  Thank you for confirming. 

Status Investigating
Translate
2 Comments
LEGEND ,
Apr 11, 2025 Apr 11, 2025

@Rikk Flohr: Photography, I see the same result following the recipe. 

 

Also, note that viewFactory:scrolled_view() obeys the Mac OS setting (i.e. one part of the SDK obeys the setting, another doesn't).

Translate
Report
Adobe Employee ,
Apr 14, 2025 Apr 14, 2025
LATEST

Thanks @C.Cella. I've logged this with the SDK folks to investigate. 

@johnrellis  Thank you for confirming. 

Rikk Flohr: Adobe Photography Org
Status Investigating
Translate
Report