Skip to main content
C.Cella
Legend
April 10, 2025

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

  • April 10, 2025
  • 2 replies
  • 272 views

Steps to reproduce:

Mac OS

 

1. Settings > Appearance > Show scroll bars : Always




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.



2 replies

Rikk Flohr_Photography
Community Manager
April 14, 2025

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

@johnrellis  Thank you for confirming. 

Rikk Flohr: Adobe Photography Org
johnrellis
Legend
April 12, 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).