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.