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

SDk / combo_box issues with dropdown list

Advocate ,
Apr 08, 2025 Apr 08, 2025

I have created a small dialog window using a combo_box
I am facing two issues: 

1. Only 5 entries are displayed in the dropdown, no more than that.
2. At first the scroller faintly appears, then disappears.

Screenshot 2025-04-08 at 13.45.08.pngScreenshot 2025-04-08 at 13.45.17.png

I have set scrollers to always appear in the Mac settings.

Screenshot 2025-04-08 at 13.46.53.png

The scoller disappearing is not a big issue.

Can the limit of entries in the dropdown be extended?
I tried using height_in_lines but doens't work.

TOPICS
macOS , SDK
105
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
LEGEND ,
Apr 09, 2025 Apr 09, 2025

I don't see any documented or undocumented method for increasing the height of the dropdown either. 

 

Re the disappearing scroll bar, if I use the mouse wheel or the trackpad to scroll it, the scroll bar reappears again. I think that's standard Mac behavior, not sure.

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
Advocate ,
Apr 09, 2025 Apr 09, 2025

@johnrellis yes the scroll bar appears again with user input.

But one has to know it's possible.

 

When I was seeing only few entries and no scroll bar I thought my code was wrong and didn't return all the entries...I didn't think it was possible to scroll.

 

The dropdow is exactly what I need but the 5 entries limit is problematic,.doens't provide a good user experience.

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
LEGEND ,
Apr 10, 2025 Apr 10, 2025

"yes the scroll bar appears again with user input. But one has to know it's possible."

 

That's the default behavior on Mac. (I too changed the default to always show scroll bars.) It's clearly a LR design bug that combo_box() doesn't obey that setting, while scrolled_view() does.

 

Apple's UI designers love dynamically disappearing controls in a misguided attempt at decluttering the UI for babies, making life for knowledge workers harder.  For example, following the Apple UI guidelines, the Preview app's Inspector window disappears the minute keyboard focus shifts to another app; so if you're trying to read the Inspector window while looking at information about the image from another app, or enter the information into another app, or type in an email, you have to make a screenshot of the Inspector window!  As another example, the selection in Excel visually disappears when focus changes to another app, making it hard to highlight information in Excel while using the other app.

 

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
Advocate ,
Apr 10, 2025 Apr 10, 2025
LATEST
"It's clearly a LR design bug that combo_box() doesn't obey that setting, while scrolled_view() does."
 
@johnrellis I will pack a test.code and file a bug.
 
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